Skip to content

Commit

Permalink
[VAULT-20630] CI: Fix the CI workflow issue where we check out base r…
Browse files Browse the repository at this point in the history
…ef instead of the ref that triggered the workflow run (#23453)
  • Loading branch information
kubawi authored and hellobontempo committed Oct 3, 2023
1 parent 4497b54 commit 346e9f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 346e9f4

Please sign in to comment.