Skip to content

Commit

Permalink
[VAULT-20630] CI: Use 'ref' (not 'base_ref') as a default git referen…
Browse files Browse the repository at this point in the history
…ce to check out code in the test-go GHA workflow (#23458) (#23469)

Co-authored-by: Kuba Wieczorek <[email protected]>
  • Loading branch information
1 parent 88138ed commit 3451f81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
with:
github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
no-restore: true # don't download them on a cache hit
# control checking out head instead of ref by a GH label
# control checking out head instead of default ref by a GH label
# if checkout-head label is added to a PR, checkout HEAD otherwise checkout ref
- if: ${{ !contains(github.event.pull_request.labels.*.name, 'checkout-head') }}
run: echo "CHECKOUT_REF=${{ github.ref }}" >> "$GITHUB_ENV"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ on:
checkout-ref:
description: The ref to use for checkout.
required: false
default: ${{ github.base_ref }}
default: ${{ github.ref }}
type: string

env: ${{ fromJSON(inputs.env-vars) }}
Expand Down

0 comments on commit 3451f81

Please sign in to comment.