mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 18:17:55 +00:00
backport of commit 3acfe5ea52 (#23460)
Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
This commit is contained in:
committed by
GitHub
parent
b3a6f8f983
commit
0e6b6ea405
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -60,8 +60,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
no-restore: true # don't download them on a cache hit
|
no-restore: true # don't download them on a cache hit
|
||||||
# control checking out head instead of base 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 base_ref
|
# if checkout-head label is added to a PR, checkout HEAD otherwise checkout ref
|
||||||
- if: ${{ !contains(github.event.pull_request.labels.*.name, 'checkout-head') }}
|
- if: ${{ !contains(github.event.pull_request.labels.*.name, 'checkout-head') }}
|
||||||
run: echo "CHECKOUT_REF=${{ github.ref }}" >> "$GITHUB_ENV"
|
run: echo "CHECKOUT_REF=${{ github.ref }}" >> "$GITHUB_ENV"
|
||||||
- if: ${{ contains(github.event.pull_request.labels.*.name, 'checkout-head') }}
|
- if: ${{ contains(github.event.pull_request.labels.*.name, 'checkout-head') }}
|
||||||
|
|||||||
2
.github/workflows/test-go.yml
vendored
2
.github/workflows/test-go.yml
vendored
@@ -70,7 +70,7 @@ on:
|
|||||||
checkout-ref:
|
checkout-ref:
|
||||||
description: The ref to use for checkout.
|
description: The ref to use for checkout.
|
||||||
required: false
|
required: false
|
||||||
default: ${{ github.base_ref }}
|
default: ${{ github.ref }}
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
env: ${{ fromJSON(inputs.env-vars) }}
|
env: ${{ fromJSON(inputs.env-vars) }}
|
||||||
|
|||||||
Reference in New Issue
Block a user