Skip to content

Commit e2369d9

Browse files
committed
Skip everything on cache hit
1 parent 137d101 commit e2369d9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/deploy-staging.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,24 @@ jobs:
2222
name: Render Datasheets
2323
runs-on: ubuntu-latest
2424
steps:
25+
- uses: actions/cache@v4
26+
id: cache
27+
with:
28+
path: static/resources/datasheets
29+
key: ${{ runner.os }}-datasheets-${{ hashFiles('**/*datasheet.md') }}
30+
2531
- uses: actions/checkout@v4
32+
if: steps.cache.outputs.cache-hit != 'true'
2633
with:
2734
fetch-depth: 1
2835

2936
- uses: actions/setup-node@v4
37+
if: steps.cache.outputs.cache-hit != 'true'
3038
with:
3139
node-version: 18
3240
cache: "npm"
3341
cache-dependency-path: "package-lock.json"
3442

35-
- uses: actions/cache@v4
36-
id: cache
37-
with:
38-
path: static/resources/datasheets
39-
key: ${{ runner.os }}-datasheets-${{ hashFiles('**/*datasheet.md') }}
40-
4143
- name: Render Datasheets
4244
if: steps.cache.outputs.cache-hit != 'true'
4345
run: |

0 commit comments

Comments
 (0)