Skip to content

Commit

Permalink
CI (Buildbot): a simpler way of getting the SHA for the "Statuses" ac…
Browse files Browse the repository at this point in the history
…tion (#41817)

(cherry picked from commit 0e8bb95)
  • Loading branch information
DilumAluthge authored and KristofferC committed Sep 3, 2021
1 parent 81941f2 commit cab6966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/statuses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down

0 comments on commit cab6966

Please sign in to comment.