Skip to content

Commit 7ac7bad

Browse files
committed
CI: drop github context from ccache-setup input description
The read-only input description embedded `${{ github.event_name == 'pull_request' }}` as example text. GitHub validates ${{ }} expressions in an action's input definitions at manifest-load time, where the github context is not available, so the action failed to load ("Unrecognized named-value: 'github'", action.yml line 27) and every ccache-setup consumer died at "Set up ccache" (build library, make check, Compiler test, Multi-arch test, ...). Describe the expression in prose instead of embedding it as a live ${{ }} template; the github.* references that remain are in step with:/run: blocks, where the context is available.
1 parent a80d6d0 commit 7ac7bad

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/actions/ccache-setup/action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ inputs:
2626
read-only:
2727
description: >
2828
When 'true', restore the cache but do NOT save it (no post-job
29-
upload). Pass `${{ github.event_name == 'pull_request' }}` so PR runs
30-
consume the shared cache read-only - no per-PR entries, no churn -
31-
while scheduled/push runs (read-only false) refresh it.
29+
upload). Callers should set this to the result of the expression
30+
github.event_name == 'pull_request' so PR runs consume the shared
31+
cache read-only - no per-PR entries, no churn - while scheduled/push
32+
runs (read-only false) refresh it.
3233
required: false
3334
default: 'false'
3435

0 commit comments

Comments
 (0)