File tree 1 file changed +3
-3
lines changed
.github/actions/restore-cache
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 6
6
description : " The dependency cache key"
7
7
required : true
8
8
node_version :
9
- description : " If set, temporarily set node version to 18 before installing, then revert to this version after."
9
+ description : " If set, temporarily set node version to default one before installing, then revert to this version after."
10
10
required : false
11
11
12
12
runs :
26
26
name : build-output
27
27
28
28
- name : Set node version
29
- if : inputs.node_version
29
+ if : inputs.node_version && steps.dep-cache.outputs.cache-hit != 'true'
30
30
uses : actions/setup-node@v4
31
31
with :
32
32
node-version-file : ' package.json'
37
37
shell : bash
38
38
39
39
- name : Revert node version
40
- if : inputs.node_version
40
+ if : inputs.node_version && steps.dep-cache.outputs.cache-hit != 'true'
41
41
uses : actions/setup-node@v4
42
42
with :
43
43
node-version : ${{ inputs.node_version }}
You can’t perform that action at this time.
0 commit comments