Skip to content

Commit 73ad76b

Browse files
committed
config: use param for latest cache action version
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
1 parent ec4458c commit 73ad76b

6 files changed

Lines changed: 11 additions & 10 deletions

File tree

content/guides/angular/configure-github-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ jobs:
168168

169169
# 3. Cache Docker layers
170170
- name: Cache Docker layers
171-
uses: actions/cache@v4
171+
uses: actions/cache@{{% param "cache_action_version" %}}
172172
with:
173173
path: /tmp/.buildx-cache
174174
key: ${{ runner.os }}-buildx-${{ github.sha }}
@@ -177,7 +177,7 @@ jobs:
177177

178178
# 4. Cache npm dependencies
179179
- name: Cache npm dependencies
180-
uses: actions/cache@v4
180+
uses: actions/cache@{{% param "cache_action_version" %}}
181181
with:
182182
path: ~/.npm
183183
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}

content/guides/nodejs/configure-github-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ jobs:
181181
uses: docker/setup-buildx-action@{{% param "setup_buildx_action_version" %}}
182182

183183
- name: Cache npm dependencies
184-
uses: actions/cache@v4
184+
uses: actions/cache@{{% param "cache_action_version" %}}
185185
with:
186186
path: ~/.npm
187187
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
@@ -226,7 +226,7 @@ jobs:
226226
uses: docker/setup-buildx-action@{{% param "setup_buildx_action_version" %}}
227227

228228
- name: Cache Docker layers
229-
uses: actions/cache@v4
229+
uses: actions/cache@{{% param "cache_action_version" %}}
230230
with:
231231
path: /tmp/.buildx-cache
232232
key: ${{ runner.os }}-buildx-${{ github.sha }}

content/guides/reactjs/configure-github-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,15 @@ jobs:
168168

169169
# 3. Cache Docker layers
170170
- name: Cache Docker layers
171-
uses: actions/cache@v4
171+
uses: actions/cache@{{% param "cache_action_version" %}}
172172
with:
173173
path: /tmp/.buildx-cache
174174
key: ${{ runner.os }}-buildx-${{ github.sha }}
175175
restore-keys: ${{ runner.os }}-buildx-
176176

177177
# 4. Cache npm dependencies
178178
- name: Cache npm dependencies
179-
uses: actions/cache@v4
179+
uses: actions/cache@{{% param "cache_action_version" %}}
180180
with:
181181
path: ~/.npm
182182
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}

content/guides/vuejs/configure-github-actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ jobs:
168168

169169
# 3. Cache Docker layers
170170
- name: Cache Docker Layers
171-
uses: actions/cache@v4
171+
uses: actions/cache@{{% param "cache_action_version" %}}
172172
with:
173173
path: /tmp/.buildx-cache
174174
key: ${{ runner.os }}-buildx-${{ github.sha }}
@@ -177,7 +177,7 @@ jobs:
177177

178178
# 4. Cache npm dependencies
179179
- name: Cache npm Dependencies
180-
uses: actions/cache@v4
180+
uses: actions/cache@{{% param "cache_action_version" %}}
181181
with:
182182
path: ~/.npm
183183
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}

content/manuals/build/ci/github-actions/cache.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ jobs:
246246
type=semver,pattern={{major}}.{{minor}}
247247
248248
- name: Go Build Cache for Docker
249-
uses: actions/cache@v4
249+
uses: actions/cache@{{% param "cache_action_version" %}}
250250
with:
251251
path: go-build-cache
252252
key: ${{ runner.os }}-go-build-cache-${{ hashFiles('**/go.sum') }}
@@ -303,7 +303,7 @@ jobs:
303303
uses: docker/setup-buildx-action@{{% param "setup_buildx_action_version" %}}
304304
305305
- name: Cache Docker layers
306-
uses: actions/cache@v4
306+
uses: actions/cache@{{% param "cache_action_version" %}}
307307
with:
308308
path: ${{ runner.temp }}/.buildx-cache
309309
key: ${{ runner.os }}-buildx-${{ github.sha }}

hugo.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ params:
161161
github_builder_version: "v1"
162162
# Generic actions
163163
checkout_action_version: "v6"
164+
cache_action_version: "v5"
164165

165166
# Example runtime/library/os versions
166167
example_go_version: "1.25"

0 commit comments

Comments
 (0)