Skip to content

Commit 9bfe123

Browse files
committed
ci(workflows): [ci] use github.event.pull_request.head.sha for codecov
- codecov/codecov-bash#83 - codecov/codecov-bash#83 (comment) - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#pull_request Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
1 parent 4e4d9a0 commit 9bfe123

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,15 +265,15 @@ jobs:
265265
flags: ${{ format('node{0}', matrix.node-version) }}
266266
override_branch: ${{ env.REF }}
267267
override_build: ${{ github.run_id }}
268-
override_commit: ${{ github.sha }}
268+
override_commit: ${{ env.GITHUB_SHA }}
269269
token: ${{ secrets.CODECOV_TOKEN }}
270270
verbose: true
271271
env:
272272
GITHUB_JOB: ${{ github.job }}
273273
GITHUB_REF: ${{ github.ref }}
274274
GITHUB_REF_TYPE: ${{ github.ref_type }}
275275
GITHUB_RUN_ID: ${{ github.run_id }}
276-
GITHUB_SHA: ${{ github.sha }}
276+
GITHUB_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
277277
GITHUB_WORKSPACE: ${{ github.workspace }}
278278
build:
279279
needs: metadata

0 commit comments

Comments
 (0)