CI: Rework code checkout.

This commit is contained in:
Marco Ebert 2024-09-25 21:40:58 +02:00 committed by k8s-infra-cherrypick-robot
parent ced25d55d3
commit 912456e3d3
2 changed files with 3 additions and 5 deletions

View file

@ -44,12 +44,10 @@ jobs:
git config --global user.name "${GITHUB_ACTOR}" git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Checkout master - name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with: with:
# Fetch entire history. Required for chart-releaser; see https://github.com/helm/chart-releaser-action/issues/13#issuecomment-602063896
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.ref_name }}
- name: Lint chart - name: Lint chart
run: | run: |

View file

@ -224,7 +224,7 @@ jobs:
- name: Set up Helm Unit Test - name: Set up Helm Unit Test
run: helm plugin install https://github.com/helm-unittest/helm-unittest run: helm plugin install https://github.com/helm-unittest/helm-unittest
- name: Checkout - name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with: with:
fetch-depth: 0 fetch-depth: 0
@ -257,7 +257,7 @@ jobs:
k8s: [v1.26.15, v1.27.13, v1.28.9, v1.29.4, v1.30.0] k8s: [v1.26.15, v1.27.13, v1.28.9, v1.29.4, v1.30.0]
steps: steps:
- name: Checkout - name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: cache - name: cache