Skip to content

Commit e5ecdc3

Browse files
Update call-reusable.yml
1 parent 64a8fe9 commit e5ecdc3

File tree

1 file changed

+13
-24
lines changed

1 file changed

+13
-24
lines changed

.github/workflows/call-reusable.yml

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: PNPM Cache 422 Repro
1+
name: Reproduce Cache 422 Error
22

33
on:
4-
workflow_call:
4+
workflow_dispatch:
55

66
jobs:
7-
repro-422:
8-
runs-on: self-hosted
7+
cache-422-repro:
8+
runs-on: ubuntu-latest
99

1010
steps:
1111
- uses: actions/checkout@v4
@@ -18,34 +18,23 @@ jobs:
1818
- name: Install PNPM
1919
run: npm install -g pnpm
2020

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-
2821
- name: Restore PNPM cache (Path A)
2922
uses: actions/cache@v4
3023
with:
31-
path: ${{ env.STORE_PATH }}
24+
path: /tmp/pnpm-store-path-A
3225
key: pnpm-store-Linux-18.20.4-v1
3326

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"
3929

40-
- name: Show PNPM store path B
41-
id: cache-path-B
30+
- name: Prepare different cache content in Path B
4231
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
4635
47-
- name: Save PNPM cache (Path B) - conflict expected
36+
- name: Save PNPM cache (Path B)
4837
uses: actions/cache@v4
4938
with:
50-
path: ${{ env.STORE_PATH }}
39+
path: /tmp/pnpm-store-path-B
5140
key: pnpm-store-Linux-18.20.4-v1

0 commit comments

Comments
 (0)