CI: Rework code checkout.

This commit is contained in:
Marco Ebert 2024-09-25 21:40:58 +02:00
parent 222f20101a
commit 2021539379
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

@ -240,7 +240,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
@ -273,7 +273,7 @@ jobs:
k8s: [v1.28.13, v1.29.8, v1.30.4, v1.31.0] k8s: [v1.28.13, v1.29.8, v1.30.4, v1.31.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