Skip to content

Commit

Permalink
ci(workflows): [ci] use github.event.pull_request.head.sha for co…
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Feb 18, 2023
1 parent 9efabd4 commit 91128e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# - https://github.com/actions/checkout
# - https://github.com/actions/setup-node
# - https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#yarn2-configuration
# - https://github.com/actions/upload-artifact
# - https://github.com/codecov/codecov-action
# - https://github.com/hmarr/debug-action

Expand Down Expand Up @@ -264,15 +265,15 @@ jobs:
flags: ${{ format('node{0}', matrix.node-version) }}
override_branch: ${{ env.REF }}
override_build: ${{ github.run_id }}
override_commit: ${{ github.sha }}
override_commit: ${{ env.GITHUB_SHA }}
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
env:
GITHUB_JOB: ${{ github.job }}
GITHUB_REF: ${{ github.ref }}
GITHUB_REF_TYPE: ${{ github.ref_type }}
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_SHA: ${{ github.sha }}
GITHUB_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
GITHUB_WORKSPACE: ${{ github.workspace }}
build:
needs: metadata
Expand Down

0 comments on commit 91128e7

Please sign in to comment.