소스 검색

Merge pull request #104803 from Repiteo/ci/smarter-cache

CI: Validate `scons-cache` via action output
Thaddeus Crews 5 달 전
부모
커밋
de9cdfea4b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      .github/actions/godot-cache-restore/action.yml

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

@@ -20,9 +20,9 @@ runs:
         restore-keys: ${{ inputs.cache-name }}|${{ github.event.repository.default_branch }}
 
     - name: Log default cache files
-      if: github.ref_name != github.event.repository.default_branch
+      if: steps.cache-ping.outputs.cache-matched-key && github.ref_name != github.event.repository.default_branch
       shell: sh
-      run: test -d "${{ inputs.scons-cache }}" && find "${{ inputs.scons-cache }}" >> redundant.txt
+      run: find "${{ inputs.scons-cache }}" >> redundant.txt
 
     # 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.