Avoid push-time workflow input evaluation

This commit is contained in:
nornen0202 2026-04-07 21:29:39 +09:00
parent af8240e722
commit 86127789a3
1 changed files with 12 additions and 2 deletions

View File

@ -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