Skip to content

Commit 458e0e6

Browse files
committed
fix: 🐛 fix godot bin cache
1 parent 4878a1e commit 458e0e6

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/actions/godot-install/action.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,15 @@ runs:
2929
run: |
3030
echo "CACHE_NAME=${{ runner.OS }}-Godot_v${{ inputs.godot-version }}-${{ inputs.godot-status-version }}" >> "$GITHUB_ENV"
3131
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
3535
with:
3636
path: ${{ inputs.godot-cache-path }}
3737
key: ${{ env.CACHE_NAME }}
38-
restore-keys: ${{ env.CACHE_NAME }}
3938

4039
- 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'
4241
continue-on-error: false
4342
shell: bash
4443
run: |
@@ -60,4 +59,11 @@ runs:
6059
mv ${{ inputs.godot-cache-path }}/$GODOT_BIN ${{ inputs.godot-cache-path }}/godot
6160
6261
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 }}

0 commit comments

Comments
 (0)