CI: Ensure .scons-cache exists before parsing

This commit is contained in:
Thaddeus Crews 2025-03-18 08:44:13 -05:00
parent fc827bbe25
commit 6c19c0bec5
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84

View file

@ -22,7 +22,7 @@ runs:
- name: Log default cache files
if: github.ref_name != github.event.repository.default_branch
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
# from the default branch without conflicting with whatever local changes were already made.