From 73ad76be717ee870a4a80e5853d6311881c4f27d Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Tue, 17 Mar 2026 14:12:13 +0100 Subject: [PATCH] config: use param for latest cache action version Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- content/guides/angular/configure-github-actions.md | 4 ++-- content/guides/nodejs/configure-github-actions.md | 4 ++-- content/guides/reactjs/configure-github-actions.md | 4 ++-- content/guides/vuejs/configure-github-actions.md | 4 ++-- content/manuals/build/ci/github-actions/cache.md | 4 ++-- hugo.yaml | 1 + 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/content/guides/angular/configure-github-actions.md b/content/guides/angular/configure-github-actions.md index 2aefdffc65..a4571093f1 100644 --- a/content/guides/angular/configure-github-actions.md +++ b/content/guides/angular/configure-github-actions.md @@ -168,7 +168,7 @@ jobs: # 3. Cache Docker layers - name: Cache Docker layers - uses: actions/cache@v4 + uses: actions/cache@{{% param "cache_action_version" %}} with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} @@ -177,7 +177,7 @@ jobs: # 4. Cache npm dependencies - name: Cache npm dependencies - uses: actions/cache@v4 + uses: actions/cache@{{% param "cache_action_version" %}} with: path: ~/.npm key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} diff --git a/content/guides/nodejs/configure-github-actions.md b/content/guides/nodejs/configure-github-actions.md index 94a6caca74..1f21b8398e 100644 --- a/content/guides/nodejs/configure-github-actions.md +++ b/content/guides/nodejs/configure-github-actions.md @@ -181,7 +181,7 @@ jobs: uses: docker/setup-buildx-action@{{% param "setup_buildx_action_version" %}} - name: Cache npm dependencies - uses: actions/cache@v4 + uses: actions/cache@{{% param "cache_action_version" %}} with: path: ~/.npm key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} @@ -226,7 +226,7 @@ jobs: uses: docker/setup-buildx-action@{{% param "setup_buildx_action_version" %}} - name: Cache Docker layers - uses: actions/cache@v4 + uses: actions/cache@{{% param "cache_action_version" %}} with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} diff --git a/content/guides/reactjs/configure-github-actions.md b/content/guides/reactjs/configure-github-actions.md index f28c68f54b..a74d319ed0 100644 --- a/content/guides/reactjs/configure-github-actions.md +++ b/content/guides/reactjs/configure-github-actions.md @@ -168,7 +168,7 @@ jobs: # 3. Cache Docker layers - name: Cache Docker layers - uses: actions/cache@v4 + uses: actions/cache@{{% param "cache_action_version" %}} with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} @@ -176,7 +176,7 @@ jobs: # 4. Cache npm dependencies - name: Cache npm dependencies - uses: actions/cache@v4 + uses: actions/cache@{{% param "cache_action_version" %}} with: path: ~/.npm key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} diff --git a/content/guides/vuejs/configure-github-actions.md b/content/guides/vuejs/configure-github-actions.md index 0adffc4b54..7df7f8dd29 100644 --- a/content/guides/vuejs/configure-github-actions.md +++ b/content/guides/vuejs/configure-github-actions.md @@ -168,7 +168,7 @@ jobs: # 3. Cache Docker layers - name: Cache Docker Layers - uses: actions/cache@v4 + uses: actions/cache@{{% param "cache_action_version" %}} with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} @@ -177,7 +177,7 @@ jobs: # 4. Cache npm dependencies - name: Cache npm Dependencies - uses: actions/cache@v4 + uses: actions/cache@{{% param "cache_action_version" %}} with: path: ~/.npm key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} diff --git a/content/manuals/build/ci/github-actions/cache.md b/content/manuals/build/ci/github-actions/cache.md index 5073f185c5..8e7af62cc4 100644 --- a/content/manuals/build/ci/github-actions/cache.md +++ b/content/manuals/build/ci/github-actions/cache.md @@ -246,7 +246,7 @@ jobs: type=semver,pattern={{major}}.{{minor}} - name: Go Build Cache for Docker - uses: actions/cache@v4 + uses: actions/cache@{{% param "cache_action_version" %}} with: path: go-build-cache key: ${{ runner.os }}-go-build-cache-${{ hashFiles('**/go.sum') }} @@ -303,7 +303,7 @@ jobs: uses: docker/setup-buildx-action@{{% param "setup_buildx_action_version" %}} - name: Cache Docker layers - uses: actions/cache@v4 + uses: actions/cache@{{% param "cache_action_version" %}} with: path: ${{ runner.temp }}/.buildx-cache key: ${{ runner.os }}-buildx-${{ github.sha }} diff --git a/hugo.yaml b/hugo.yaml index aa133ac9c4..b0a88ebdb0 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -161,6 +161,7 @@ params: github_builder_version: "v1" # Generic actions checkout_action_version: "v6" + cache_action_version: "v5" # Example runtime/library/os versions example_go_version: "1.25"