1
- name : PNPM Cache 422 Repro
1
+ name : Reproduce Cache 422 Error
2
2
3
3
on :
4
- workflow_call :
4
+ workflow_dispatch :
5
5
6
6
jobs :
7
- repro -422 :
8
- runs-on : self-hosted
7
+ cache -422-repro :
8
+ runs-on : ubuntu-latest
9
9
10
10
steps :
11
11
- uses : actions/checkout@v4
@@ -18,34 +18,23 @@ jobs:
18
18
- name : Install PNPM
19
19
run : npm install -g pnpm
20
20
21
- - name : Show PNPM store path A
22
- id : cache-path-A
23
- run : |
24
- mkdir -p /tmp/pnpm-store-A
25
- echo "dummy content A" > /tmp/pnpm-store-A/cache.txt
26
- echo "STORE_PATH=/tmp/pnpm-store-A" >> $GITHUB_ENV
27
-
28
21
- name : Restore PNPM cache (Path A)
29
22
uses : actions/cache@v4
30
23
with :
31
- path : ${{ env.STORE_PATH }}
24
+ path : /tmp/pnpm-store-path-A
32
25
key : pnpm-store-Linux-18.20.4-v1
33
26
34
- - name : Save PNPM cache (Path A)
35
- uses : actions/cache@v4
36
- with :
37
- path : ${{ env.STORE_PATH }}
38
- key : pnpm-store-Linux-18.20.4-v1
27
+ - name : Show restored files
28
+ run : ls -la /tmp/pnpm-store-path-A || echo "No cache restored"
39
29
40
- - name : Show PNPM store path B
41
- id : cache-path-B
30
+ - name : Prepare different cache content in Path B
42
31
run : |
43
- mkdir -p /tmp/pnpm-store-B
44
- echo "dummy content B " > /tmp/pnpm-store-B/cache.txt
45
- echo "STORE_PATH= /tmp/pnpm-store-B" >> $GITHUB_ENV
32
+ mkdir -p /tmp/pnpm-store-path- B
33
+ echo "different dummy cache content " > /tmp/pnpm-store-path -B/cache.txt
34
+ ls -la /tmp/pnpm-store-path-B
46
35
47
- - name : Save PNPM cache (Path B) - conflict expected
36
+ - name : Save PNPM cache (Path B)
48
37
uses : actions/cache@v4
49
38
with :
50
- path : ${{ env.STORE_PATH }}
39
+ path : /tmp/pnpm-store-path-B
51
40
key : pnpm-store-Linux-18.20.4-v1
0 commit comments