From 33560ba0de935378e841e5e109582138bd265267 Mon Sep 17 00:00:00 2001 From: Alice Zhao Date: Sat, 22 Nov 2025 22:41:29 -0800 Subject: [PATCH] fix: use github.sha for yarn cache key to avoid hashFiles() composite action bug --- .github/actions/install-dependencies/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/install-dependencies/action.yml b/.github/actions/install-dependencies/action.yml index 632c09c04a..2b00b7a47c 100644 --- a/.github/actions/install-dependencies/action.yml +++ b/.github/actions/install-dependencies/action.yml @@ -11,7 +11,8 @@ runs: id: yarn-cache with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('src/electron/yarn.lock') }} + # key: ${{ runner.os }}-yarn-${{ hashFiles('src/electron/yarn.lock') }} TODO: Restore after https://github.com/actions/runner/issues/449 is fixed + key: ${{ runner.os }}-yarn-${{ github.sha }} restore-keys: | ${{ runner.os }}-yarn- - name: Install Dependencies