Avoid push-time workflow input evaluation
This commit is contained in:
parent
af8240e722
commit
86127789a3
|
|
@ -63,8 +63,13 @@ jobs:
|
||||||
if ($LASTEXITCODE) { exit $LASTEXITCODE }
|
if ($LASTEXITCODE) { exit $LASTEXITCODE }
|
||||||
|
|
||||||
- name: Resolve Codex runtime
|
- name: Resolve Codex runtime
|
||||||
if: ${{ github.event.inputs.site_only != 'true' }}
|
|
||||||
run: |
|
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 {
|
function Test-CodexCandidate {
|
||||||
param([string]$Candidate)
|
param([string]$Candidate)
|
||||||
|
|
||||||
|
|
@ -123,8 +128,13 @@ jobs:
|
||||||
}
|
}
|
||||||
|
|
||||||
- name: Verify Codex login and model availability
|
- name: Verify Codex login and model availability
|
||||||
if: ${{ github.event.inputs.site_only != 'true' }}
|
|
||||||
run: |
|
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"
|
$workspaceDir = Join-Path $env:GITHUB_WORKSPACE ".codex-preflight"
|
||||||
$script = @"
|
$script = @"
|
||||||
import os
|
import os
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue