From d58766ba5cc8464df3ca93bc10ecebf891b3b9c2 Mon Sep 17 00:00:00 2001 From: Vladimir Milosevic <157983820+vmilosevic@users.noreply.github.com> Date: Thu, 19 Dec 2024 16:45:32 +0100 Subject: [PATCH] Fix for downstream check during uplift (#1645) 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. --- .github/workflows/on-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/on-pr.yml b/.github/workflows/on-pr.yml index 3dd1aae93..478a9263f 100644 --- a/.github/workflows/on-pr.yml +++ b/.github/workflows/on-pr.yml @@ -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