From 8754aee447b4039dfdcc274e75e294bd0c80ddb7 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Mon, 15 Jun 2026 16:19:48 +0000 Subject: [PATCH] CI: fix ccache-setup load failure (github context in composite if:) The scheduled-reseed step gated CCACHE_RECACHE with `if: github.event_name == 'schedule'`, but the github context is not available in a composite action's step-level if:. The action manifest therefore failed to load ("Unrecognized named-value: 'github'"), and every workflow using ccache-setup broke at the "Set up ccache" step (build library, make check, Compiler test, Multi-arch test, ...). Gate on the built-in $GITHUB_EVENT_NAME env var in the shell instead, which keeps the schedule-only reseed behaviour with no caller changes. --- .github/actions/ccache-setup/action.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/actions/ccache-setup/action.yml b/.github/actions/ccache-setup/action.yml index b1d35e4388..675434bde3 100644 --- a/.github/actions/ccache-setup/action.yml +++ b/.github/actions/ccache-setup/action.yml @@ -106,10 +106,15 @@ runs: # so a bad/stale entry can't live forever. The cache is still saved # (read-only is false on schedule), and PR/push runs are unaffected - # they keep their warm hits. Cost: the scheduled jobs recompile fully. + # Gate in the shell via the built-in $GITHUB_EVENT_NAME, not a step-level + # `if:` - the `github` context is not available in a composite action's + # step `if:` (it loads as "Unrecognized named-value: 'github'"). - name: Force fresh compiles on scheduled reseed - if: github.event_name == 'schedule' shell: bash - run: echo "CCACHE_RECACHE=1" >> "$GITHUB_ENV" + run: | + if [ "$GITHUB_EVENT_NAME" = "schedule" ]; then + echo "CCACHE_RECACHE=1" >> "$GITHUB_ENV" + fi - name: Show ccache stats (initial) shell: bash