Skip to content

Commit

Permalink
[ci] Fix incorre pr number for experimental scripts (mui#20021)
Browse files Browse the repository at this point in the history
On Status events the commit that is associated with the event
is the later one on master not the one that is
associated with that particular status
  • Loading branch information
eps1lon authored and EsoterikStare committed Mar 30, 2020
1 parent ee127ad commit 7061894
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}" }'

0 comments on commit 7061894

Please sign in to comment.