ci: fix invalid secrets expression in RelativeCI step condition (#12791)

The secrets context is not available in step-level if conditions, which
made the workflow file invalid. Map the secret to an env var and test
that instead.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Tom MoorandClaude Opus 4.8 authored and GitHub committed 2026-06-22 21:46:33 -04:00
1 parent e646b14225
commit bb6f05de48
1 file changed
+3 -1
+3 -1
View File
@@ -126,7 +126,9 @@ jobs:
run: echo "NODE_ENV=production" >> $GITHUB_ENV
- run: yarn vite:build
- name: Send bundle stats to RelativeCI
if: ${{ secrets.RELATIVE_CI_KEY != '' }}
if: ${{ env.RELATIVE_CI_KEY != '' }}
env:
RELATIVE_CI_KEY: ${{ secrets.RELATIVE_CI_KEY }}
uses: relative-ci/agent-action@38328454d6a23942175eba485fca4fbb807b1f03 # v2
with:
key: ${{ secrets.RELATIVE_CI_KEY }}