From 9de2a65c34b5b6d600e6d31a210d64eba4bc546d Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Sat, 7 Aug 2021 00:39:27 -0400 Subject: [PATCH] CI (Buildbot): a simpler way of getting the SHA for the "Statuses" action (#41817) (cherry picked from commit 0e8bb9596e29703e65d11214284e2fcac1b19bda) --- .github/workflows/statuses.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/statuses.yml b/.github/workflows/statuses.yml index fa448e9d9fbf0..26ec245d1ad18 100644 --- a/.github/workflows/statuses.yml +++ b/.github/workflows/statuses.yml @@ -52,7 +52,7 @@ jobs: - run: echo "SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV if: github.event_name == 'pull_request_target' - - run: echo "SHA=${{ env.GITHUB_SHA }}" >> $GITHUB_ENV + - run: echo "SHA=${{ github.sha }}" >> $GITHUB_ENV if: github.event_name != 'pull_request_target' - run: echo "The SHA is ${{ env.SHA }}"