File tree Expand file tree Collapse file tree
manuals/build/ci/github-actions Expand file tree Collapse file tree Original file line number Diff line number Diff 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') }}
Original file line number Diff line number Diff 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 }}
Original file line number Diff line number Diff 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') }}
Original file line number Diff line number Diff 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') }}
Original file line number Diff line number Diff 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 }}
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments