Skip to content

Commit de9cdfe

Browse files
committed
Merge pull request godotengine#104803 from Repiteo/ci/smarter-cache
CI: Validate `scons-cache` via action output
2 parents 0f57097 + 58d49cf commit de9cdfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ runs:
2020
restore-keys: ${{ inputs.cache-name }}|${{ github.event.repository.default_branch }}
2121

2222
- name: Log default cache files
23-
if: github.ref_name != github.event.repository.default_branch
23+
if: steps.cache-ping.outputs.cache-matched-key && github.ref_name != github.event.repository.default_branch
2424
shell: sh
25-
run: test -d "${{ inputs.scons-cache }}" && find "${{ inputs.scons-cache }}" >> redundant.txt
25+
run: find "${{ inputs.scons-cache }}" >> redundant.txt
2626

2727
# This is done after pulling the default cache so that PRs can integrate any potential changes
2828
# from the default branch without conflicting with whatever local changes were already made.

0 commit comments

Comments
 (0)