Skip to content

Commit 93e1aa2

Browse files
committed
Auto merge of #12508 - weihanglo:ci-github-sha, r=ehuss
ci: use pull request head commit whenever possible
2 parents bc18426 + 4360d9d commit 93e1aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
runs-on: ubuntu-latest
8888
env:
8989
BASE_SHA: ${{ github.event.pull_request.base.sha }}
90-
HEAD_SHA: ${{ github.sha }}
90+
HEAD_SHA: ${{ github.event.pull_request.head.sha != '' && github.event.pull_request.head.sha || github.sha }}
9191
steps:
9292
- uses: actions/checkout@v3
9393
with:

0 commit comments

Comments
 (0)