File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
.github/actions/godot-install Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,15 @@ runs:
29
29
run : |
30
30
echo "CACHE_NAME=${{ runner.OS }}-Godot_v${{ inputs.godot-version }}-${{ inputs.godot-status-version }}" >> "$GITHUB_ENV"
31
31
32
- - name : " Build Cache"
33
- uses : actions/cache@v3
34
- id : godot-cache-binary
32
+ - name : " Godot Cache Restore "
33
+ uses : actions/cache/restore @v3
34
+ id : godot-restore-cache
35
35
with :
36
36
path : ${{ inputs.godot-cache-path }}
37
37
key : ${{ env.CACHE_NAME }}
38
- restore-keys : ${{ env.CACHE_NAME }}
39
38
40
39
- name : " Download and Install Godot ${{ inputs.godot-version }}"
41
- if : steps.godot-cache-binary .outputs.cache-hit != 'true'
40
+ if : steps.godot-restore-cache .outputs.cache-hit != 'true'
42
41
continue-on-error : false
43
42
shell : bash
44
43
run : |
60
59
mv ${{ inputs.godot-cache-path }}/$GODOT_BIN ${{ inputs.godot-cache-path }}/godot
61
60
62
61
chmod u+x ${{ inputs.godot-cache-path }}/godot
63
- echo "${{ inputs.godot-cache-path }}/godot"
62
+ echo "${{ inputs.godot-cache-path }}/godot"
63
+
64
+ - name : " Godot Cache Save"
65
+ if : steps.godot-restore-cache.outputs.cache-hit != 'true'
66
+ uses : actions/cache/save@v3
67
+ with :
68
+ path : ${{ inputs.godot-cache-path }}
69
+ key : ${{ steps.godot-restore-cache.outputs.cache-primary-key }}
You can’t perform that action at this time.
0 commit comments