mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-28 04:10:44 -04:00
[VAULT-20630] CI: Fix the CI workflow issue where we check out base ref instead of the ref that triggered the workflow run (#23453)
This commit is contained in:
parent
32059ab250
commit
b300d50799
1 changed files with 1 additions and 1 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -63,7 +63,7 @@ jobs:
|
|||
# control checking out head instead of base ref by a GH label
|
||||
# if checkout-head label is added to a PR, checkout HEAD otherwise checkout base_ref
|
||||
- if: ${{ !contains(github.event.pull_request.labels.*.name, 'checkout-head') }}
|
||||
run: echo "CHECKOUT_REF=${{ github.base_ref }}" >> "$GITHUB_ENV"
|
||||
run: echo "CHECKOUT_REF=${{ github.ref }}" >> "$GITHUB_ENV"
|
||||
- if: ${{ contains(github.event.pull_request.labels.*.name, 'checkout-head') }}
|
||||
run: echo "CHECKOUT_REF=${{ github.event.pull_request.head.sha }}" >> "$GITHUB_ENV"
|
||||
- id: checkout-ref-output
|
||||
|
|
|
|||
Loading…
Reference in a new issue