Skip to content

Commit cc69aba

Browse files
committed
small adjustment...
1 parent 0ac187d commit cc69aba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/actions/restore-cache/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inputs:
66
description: "The dependency cache key"
77
required: true
88
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."
1010
required: false
1111

1212
runs:
@@ -26,7 +26,7 @@ runs:
2626
name: build-output
2727

2828
- name: Set node version
29-
if: inputs.node_version
29+
if: inputs.node_version && steps.dep-cache.outputs.cache-hit != 'true'
3030
uses: actions/setup-node@v4
3131
with:
3232
node-version-file: 'package.json'
@@ -37,7 +37,7 @@ runs:
3737
shell: bash
3838

3939
- name: Revert node version
40-
if: inputs.node_version
40+
if: inputs.node_version && steps.dep-cache.outputs.cache-hit != 'true'
4141
uses: actions/setup-node@v4
4242
with:
4343
node-version: ${{ inputs.node_version }}

0 commit comments

Comments
 (0)