mirror of
https://github.com/k3s-io/k3s.git
synced 2026-02-03 20:39:49 -05:00
Fix PR lint checkout depth
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Need to check out one deeper than the number of commits in order to compare to the target branch Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
parent
e44a77d475
commit
421e364cc9
1 changed files with 6 additions and 4 deletions
10
.github/workflows/validate.yaml
vendored
10
.github/workflows/validate.yaml
vendored
|
|
@ -20,17 +20,19 @@ jobs:
|
|||
name: Validate
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set Commit Count
|
||||
run: |
|
||||
echo "GITHUB_CHECKOUT_FETCH_DEPTH=$( expr 1 + ${{ github.event.pull_request.commits }} )" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: ${{ github.event.pull_request.commits }}
|
||||
fetch-depth: ${{ env.GITHUB_CHECKOUT_FETCH_DEPTH }}
|
||||
|
||||
- name: Set Go Version
|
||||
run: |
|
||||
source ./scripts/version.sh
|
||||
{
|
||||
echo "GOTOOLCHAIN=${VERSION_GOLANG/go}"
|
||||
} >> "$GITHUB_ENV"
|
||||
echo "GOTOOLCHAIN=${VERSION_GOLANG/go}" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v6
|
||||
|
|
|
|||
Loading…
Reference in a new issue