From 2021539379591a7439075bafe78353676d3d69e3 Mon Sep 17 00:00:00 2001 From: Marco Ebert Date: Wed, 25 Sep 2024 21:40:58 +0200 Subject: [PATCH] CI: Rework code checkout. --- .github/workflows/chart.yaml | 4 +--- .github/workflows/ci.yaml | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/chart.yaml b/.github/workflows/chart.yaml index b4de9cbe9..6d258b431 100644 --- a/.github/workflows/chart.yaml +++ b/.github/workflows/chart.yaml @@ -44,12 +44,10 @@ jobs: git config --global user.name "${GITHUB_ACTOR}" git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" - - name: Checkout master + - name: Checkout code uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: - # Fetch entire history. Required for chart-releaser; see https://github.com/helm/chart-releaser-action/issues/13#issuecomment-602063896 fetch-depth: 0 - ref: ${{ github.ref_name }} - name: Lint chart run: | diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 86f97750b..b3b954499 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -240,7 +240,7 @@ jobs: - name: Set up Helm Unit Test run: helm plugin install https://github.com/helm-unittest/helm-unittest - - name: Checkout + - name: Checkout code uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: fetch-depth: 0 @@ -273,7 +273,7 @@ jobs: k8s: [v1.28.13, v1.29.8, v1.30.4, v1.31.0] steps: - - name: Checkout + - name: Checkout code uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: cache