diff --git a/.github/workflows/statuses.yml b/.github/workflows/statuses.yml index 1c29288d4fe79..fa448e9d9fbf0 100644 --- a/.github/workflows/statuses.yml +++ b/.github/workflows/statuses.yml @@ -50,10 +50,10 @@ jobs: fail-fast: false steps: - run: echo "SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request_target' - run: echo "SHA=${{ env.GITHUB_SHA }}" >> $GITHUB_ENV - if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request_target' - run: echo "The SHA is ${{ env.SHA }}"