From 86127789a345b9da573cd04ba8776d598c209b2e Mon Sep 17 00:00:00 2001 From: nornen0202 Date: Tue, 7 Apr 2026 21:29:39 +0900 Subject: [PATCH] Avoid push-time workflow input evaluation --- .github/workflows/daily-codex-analysis.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/daily-codex-analysis.yml b/.github/workflows/daily-codex-analysis.yml index 96787cca..d926da4f 100644 --- a/.github/workflows/daily-codex-analysis.yml +++ b/.github/workflows/daily-codex-analysis.yml @@ -63,8 +63,13 @@ jobs: if ($LASTEXITCODE) { exit $LASTEXITCODE } - name: Resolve Codex runtime - if: ${{ github.event.inputs.site_only != 'true' }} run: | + $siteOnly = "${{ github.event.inputs.site_only }}" + if ($siteOnly -eq "true") { + Write-Host "Skipping Codex runtime resolution because site_only=true." + exit 0 + } + function Test-CodexCandidate { param([string]$Candidate) @@ -123,8 +128,13 @@ jobs: } - name: Verify Codex login and model availability - if: ${{ github.event.inputs.site_only != 'true' }} run: | + $siteOnly = "${{ github.event.inputs.site_only }}" + if ($siteOnly -eq "true") { + Write-Host "Skipping Codex preflight because site_only=true." + exit 0 + } + $workspaceDir = Join-Path $env:GITHUB_WORKSPACE ".codex-preflight" $script = @" import os