Skip to content

Commit af8f394

Browse files
authored
[Chore] Anchor link testing, explicitly save cache (#29161)
1 parent df69ddc commit af8f394

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/anchor-link-audit.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
with:
2323
node-version: 22
2424

25-
- name: Cache node_modules
25+
- name: Restore node_modules cache
2626
id: node-modules-cache
27-
uses: actions/cache@v5
27+
uses: actions/cache/restore@v5
2828
with:
2929
path: node_modules
3030
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
@@ -47,6 +47,13 @@ jobs:
4747
id: header-link-check
4848
run: ./bin/htmltest -c ./bin/.htmltest.yml
4949

50+
- name: Save node_modules cache
51+
if: always()
52+
uses: actions/cache/save@v5
53+
with:
54+
path: node_modules
55+
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
56+
5057
- name: Create issue on failure
5158
if: ${{ failure() }}
5259
env:

0 commit comments

Comments
 (0)