Skip to content

Commit

Permalink
fix: automatically trigger shas update workflow when building new pat…
Browse files Browse the repository at this point in the history
…ches
  • Loading branch information
robertsLando committed Sep 19, 2024
1 parent 7a53cce commit 721dac7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,12 @@ jobs:

- name: Add release url to summary
run: echo "Release created/updated at ${{ steps.create_release.outputs.url }}" >> $GITHUB_STEP_SUMMARY

- name: Create PR for expected shas update
run: |
# trigger the update-expected.yml workflow with the latest shas
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/actions/workflows/update-expected.yml/dispatches \
-d '{"ref":"main","inputs":{"shas":"$(cat ${{ steps.generate_sha_file.outputs.sha_output_file }})"}}'

0 comments on commit 721dac7

Please sign in to comment.