Skip to content

Commit

Permalink
Fix for downstream check during uplift (#1645)
Browse files Browse the repository at this point in the history
Use pull request sha when triggering downstream check
(github.event.pull_request.head.sha) instead of github.sha. It seems
that github.sha is pointing to temp merge that is created to run the PR
workflow, and not the original commit.
  • Loading branch information
vmilosevic authored Dec 19, 2024
1 parent 5a9da9f commit d58766b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/on-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
gh workflow run ${{ env.WORKFLOW_NAME }} \
--repo ${{ env.TARGET_REPO }} --ref main \
--field test_mark=push \
--field mlir_override=${{ github.sha }}
--field mlir_override=${{ github.event.pull_request.head.sha }}
gh run list --workflow=${{ env.WORKFLOW_NAME }} --repo ${{ env.TARGET_REPO }} --limit 1
echo "Triggered ${{ env.TARGET_REPO }}"
echo "### Triggered [${{ env.TARGET_REPO }}](https://github.com/${{ env.TARGET_REPO }}/actions/workflows/${{ env.WORKFLOW_NAME }}) :rocket:" >> $GITHUB_STEP_SUMMARY

0 comments on commit d58766b

Please sign in to comment.