Skip to content

Commit 00e589b

Browse files
authored
build: invalidate github action cache to prune old files (#24896)
With Angular v14, and the CLDR update one of the files got renamed just in casing. Yarn 1.x. does not seem to prune the old files causing two files to have the same name (ignoring casing). This throws off Bazel and we need to prune the cache like we did for CircleCI.
1 parent dd7b869 commit 00e589b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/yarn-install/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ runs:
1111
# Cache key. Whenever the postinstall patches change, the cache needs to be invalidated.
1212
# If just the `yarn.lock` file changes, the most recent cache can be restored though.
1313
# See: https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows#example-using-the-cache-action.
14-
key: v3-${{hashFiles('tools/postinstall/apply-patches.js')}}-${{hashFiles('yarn.lock')}}
15-
restore-keys: v3-${{hashFiles('tools/postinstall/apply-patches.js')}}-
14+
key: v4-${{hashFiles('tools/postinstall/apply-patches.js')}}-${{hashFiles('yarn.lock')}}
15+
restore-keys: v4-${{hashFiles('tools/postinstall/apply-patches.js')}}-
1616

1717
- run: yarn install --frozen-lockfile --non-interactive
1818
shell: bash

0 commit comments

Comments
 (0)