From 58d49cf087edf13290c0cedd726f34bfe3ade956 Mon Sep 17 00:00:00 2001 From: Thaddeus Crews Date: Sun, 30 Mar 2025 10:30:50 -0500 Subject: [PATCH] CI: Validate `scons-cache` via action output --- .github/actions/godot-cache-restore/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/godot-cache-restore/action.yml b/.github/actions/godot-cache-restore/action.yml index 975decb6f81..2cfc62ab076 100644 --- a/.github/actions/godot-cache-restore/action.yml +++ b/.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.