Browse Source

Merge pull request #104316 from Repiteo/ci/safety-check

CI: Ensure `scons-cache` exists before parsing
Thaddeus Crews 5 months ago
parent
commit
707e39cf4d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      .github/actions/godot-cache-restore/action.yml

+ 1 - 1
.github/actions/godot-cache-restore/action.yml

@@ -22,7 +22,7 @@ runs:
     - name: Log default cache files
     - name: Log default cache files
       if: github.ref_name != github.event.repository.default_branch
       if: github.ref_name != github.event.repository.default_branch
       shell: sh
       shell: sh
-      run: find "${{ inputs.scons-cache }}" >> redundant.txt
+      run: test -d "${{ inputs.scons-cache }}" && find "${{ inputs.scons-cache }}" >> redundant.txt
 
 
     # This is done after pulling the default cache so that PRs can integrate any potential changes
     # This is done after pulling the default cache so that PRs can integrate any potential changes
     # from the default branch without conflicting with whatever local changes were already made.
     # from the default branch without conflicting with whatever local changes were already made.