From e3bde0b2e86f9dfa0ed8a1bf13fc11ec5f037662 Mon Sep 17 00:00:00 2001 From: Sid Shukla Date: Tue, 30 Jul 2024 19:47:23 +0200 Subject: [PATCH] Update the checkout sha for github actions `github.event.pull_request.merge_commit_sha` seems to have some buggy behavior. --- .github/workflows/build-dev.yaml | 2 +- .github/workflows/e2e.yaml | 2 +- .github/workflows/synopsys.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-dev.yaml b/.github/workflows/build-dev.yaml index c3d07430f6..56a6eed9c4 100644 --- a/.github/workflows/build-dev.yaml +++ b/.github/workflows/build-dev.yaml @@ -14,7 +14,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - ref: "${{ github.event.pull_request.merge_commit_sha }}" + ref: "${{ github.event.pull_request.head.sha }}" - uses: actions/cache@v3 with: diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index ad8ebc7df9..750603aabf 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -17,7 +17,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - ref: "${{ github.event.pull_request.merge_commit_sha }}" + ref: "${{ github.event.pull_request.head.sha }}" # Install nix using cachix/install-nix-action if running on ARC runners # See: https://github.com/DeterminateSystems/nix-installer-action/issues/68 diff --git a/.github/workflows/synopsys.yaml b/.github/workflows/synopsys.yaml index 532d9c3244..71c2dbd5c2 100644 --- a/.github/workflows/synopsys.yaml +++ b/.github/workflows/synopsys.yaml @@ -14,7 +14,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - ref: "${{ github.event.pull_request.merge_commit_sha }}" + ref: "${{ github.event.pull_request.head.sha }}" - name: Install devbox run: curl -fsSL https://get.jetpack.io/devbox | bash -s -- -f