From d96ab14fc7b8009c942a207c45c3ce3a8d979e70 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Sat, 7 May 2022 08:07:14 +0000 Subject: [PATCH] build: invalidate github action cache to prune old files 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. --- .github/actions/yarn-install/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/yarn-install/action.yml b/.github/actions/yarn-install/action.yml index c83950b1ba67..0918e772557d 100644 --- a/.github/actions/yarn-install/action.yml +++ b/.github/actions/yarn-install/action.yml @@ -11,8 +11,8 @@ runs: # Cache key. Whenever the postinstall patches change, the cache needs to be invalidated. # If just the `yarn.lock` file changes, the most recent cache can be restored though. # See: https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows#example-using-the-cache-action. - key: v3-${{hashFiles('tools/postinstall/apply-patches.js')}}-${{hashFiles('yarn.lock')}} - restore-keys: v3-${{hashFiles('tools/postinstall/apply-patches.js')}}- + key: v4-${{hashFiles('tools/postinstall/apply-patches.js')}}-${{hashFiles('yarn.lock')}} + restore-keys: v4-${{hashFiles('tools/postinstall/apply-patches.js')}}- - run: yarn install --frozen-lockfile --non-interactive shell: bash