File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -72,10 +72,10 @@ jobs:
72
72
node-version : ' 20' # 'lts/*'
73
73
timeout-minutes : 5
74
74
75
- # Cache dependencies :
76
- - name : ' Cache dependencies '
75
+ # Restore cache if up-to-date :
76
+ - name : ' Restore cache if up-to-date '
77
77
# Pin action to full length commit SHA
78
- uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
78
+ uses : actions/cache/restore @5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
79
79
id : cache
80
80
with :
81
81
path : |
@@ -135,6 +135,14 @@ jobs:
135
135
run : |
136
136
make lint-editorconfig-files EDITORCONFIG_FORMAT=github-actions FILES="${{ steps.changed-files.outputs.files }}"
137
137
138
+ # Save cache after editorconfig-checker binary has been downloaded:
139
+ - name : ' Save cache after editorconfig-checker binary has been downloaded'
140
+ if : always() && steps.cache.outputs.cache-hit != 'true'
141
+ uses : actions/cache/save@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
142
+ with :
143
+ path : ${{ github.workspace }}/node_modules
144
+ key : ${{ steps.cache.outputs.cache-primary-key }}
145
+
138
146
# Lint Markdown files:
139
147
- name : ' Lint Markdown files'
140
148
if : success() || failure()
You can’t perform that action at this time.
0 commit comments