From f28aba640887afde8396ad41bd6d35da6f22d123 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Sun, 8 Mar 2020 00:32:28 +0100 Subject: [PATCH] [ci] Fix incorre pr number for experimental scripts On Status events the commit that is associated with the event is the latet one on master not the one that is associated with that particular status --- .github/workflows/scripts.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/scripts.yml b/.github/workflows/scripts.yml index 59bf96483d4997..102796c67f46c5 100644 --- a/.github/workflows/scripts.yml +++ b/.github/workflows/scripts.yml @@ -9,15 +9,10 @@ jobs: if: github.event.state == 'success' && github.event.sender.login == 'netlify[bot]' && github.event.description == 'Deploy preview ready!' runs-on: ubuntu-latest steps: - - name: Find PR associated with this push - uses: jwalton/gh-find-current-pr@v1 - id: findPr - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - name: Run mui-scripts a11y-snapshot uses: peter-evans/repository-dispatch@v1 with: token: ${{ secrets.MUI_SCRIPTS_INCUBATOR }} repository: eps1lon/mui-scripts-incubator event-type: a11y-snapshot - client-payload: '{ "pr_number": "${{ steps.findPr.outputs.pr }}"}' + client-payload: '{ "target_url": "${{ github.event.target_url }}" }'