Skip to content

Commit b974dc8

Browse files
committed
Another attempt
1 parent e9dac43 commit b974dc8

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/pr-darwin-test.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,15 @@ jobs:
4141
run: node build/azure-pipelines/common/computeNodeModulesCacheKey.ts darwin $VSCODE_ARCH $(node -p process.arch) > .build/packagelockhash
4242

4343
- name: Print contents of .build/packagelockhash (debug)
44-
run: cat .build/packagelockhash
45-
46-
- name: Print outcome of hashFiles (debug)
44+
id: prepare-cache-key
4745
run: |
48-
echo "Computed hash:"
49-
echo "${{ hashFiles('.build/packagelockhash*') }}"
46+
cat .build/packagelockhash
47+
echo "node_modules_cache_key=$(cat .build/packagelockhash)" >> $GITHUB_OUTPUT
48+
49+
# - name: Print outcome of hashFiles (debug)
50+
# run: |
51+
# echo "Computed hash:"
52+
# echo "${{ hashFiles('.build/packagelockhash*') }}"
5053

5154
# - name: Prepare node_modules cache key
5255
# run: mkdir -p .build && node build/azure-pipelines/common/computeNodeModulesCacheKey.ts darwin $VSCODE_ARCH $(node -p process.arch) > .build/packagelockhash
@@ -56,7 +59,7 @@ jobs:
5659
uses: actions/cache/restore@v4
5760
with:
5861
path: .build/node_modules_cache
59-
key: "node_modules-macos-${{ hashFiles('.build/packagelockhash*') }}"
62+
key: "node_modules-macos-${{ steps.prepare-cache-key.outputs.node_modules_cache_key }}"
6063

6164
- name: Extract node_modules cache
6265
if: steps.cache-node-modules.outputs.cache-hit == 'true'

0 commit comments

Comments
 (0)