From 3aab38c8057f116444a7463623ce83936b14d897 Mon Sep 17 00:00:00 2001 From: Kai Date: Wed, 13 Dec 2023 19:29:48 +0100 Subject: [PATCH] fix: :bug: fix godot bin cache --- .github/actions/godot-install/action.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/actions/godot-install/action.yml b/.github/actions/godot-install/action.yml index 4bd5a7dc..4f0fd92d 100644 --- a/.github/actions/godot-install/action.yml +++ b/.github/actions/godot-install/action.yml @@ -29,16 +29,15 @@ runs: run: | echo "CACHE_NAME=${{ runner.OS }}-Godot_v${{ inputs.godot-version }}-${{ inputs.godot-status-version }}" >> "$GITHUB_ENV" - - name: "Build Cache" - uses: actions/cache@v3 - id: godot-cache-binary + - name: "Godot Cache Restore" + uses: actions/cache/restore@v3 + id: godot-restore-cache with: path: ${{ inputs.godot-cache-path }} key: ${{ env.CACHE_NAME }} - restore-keys: ${{ env.CACHE_NAME }} - name: "Download and Install Godot ${{ inputs.godot-version }}" - if: steps.godot-cache-binary.outputs.cache-hit != 'true' + if: steps.godot-restore-cache.outputs.cache-hit != 'true' continue-on-error: false shell: bash run: | @@ -60,4 +59,11 @@ runs: mv ${{ inputs.godot-cache-path }}/$GODOT_BIN ${{ inputs.godot-cache-path }}/godot chmod u+x ${{ inputs.godot-cache-path }}/godot - echo "${{ inputs.godot-cache-path }}/godot" \ No newline at end of file + echo "${{ inputs.godot-cache-path }}/godot" + + - name: "Godot Cache Save" + if: steps.godot-restore-cache.outputs.cache-hit != 'true' + uses: actions/cache/save@v3 + with: + path: ${{ inputs.godot-cache-path }} + key: ${{ steps.godot-restore-cache.outputs.cache-primary-key }} \ No newline at end of file