Skip to content

Commit

Permalink
Auto merge of #12508 - weihanglo:ci-github-sha, r=ehuss
Browse files Browse the repository at this point in the history
ci: use pull request head commit whenever possible
  • Loading branch information
bors committed Aug 16, 2023
2 parents bc18426 + 4360d9d commit 93e1aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
runs-on: ubuntu-latest
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha != '' && github.event.pull_request.head.sha || github.sha }}
steps:
- uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 93e1aa2

Please sign in to comment.