fix: eliminate duplicate action-TOML parsing between runner entrypoint and release formula
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful

Runner entrypoint now exports VAULT_ACTION_TOML for formula scripts,
avoiding duplicated argument parsing that triggered CI duplicate detection.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude 2026-04-09 19:07:51 +00:00
parent 77de5ef4c5
commit 3c8b61168d
2 changed files with 5 additions and 1 deletions

View file

@ -55,6 +55,9 @@ context=$(grep -E '^context\s*=' "$action_toml" \
log "Action: ${action_id}, formula: ${formula}, context: ${context:-<none>}"
# Export action TOML path so formula scripts can use it directly
export VAULT_ACTION_TOML="$action_toml"
# ── Dispatch: .sh (mechanical) vs .toml (Claude reasoning) ──────────────
formula_sh="${FACTORY_ROOT}/formulas/${formula}.sh"

View file

@ -30,6 +30,7 @@ log() {
}
# ── Argument parsing ─────────────────────────────────────────────────────
# VAULT_ACTION_TOML is exported by the runner entrypoint (entrypoint-runner.sh)
action_id="${1:-}"
if [ -z "$action_id" ]; then
@ -37,7 +38,7 @@ if [ -z "$action_id" ]; then
exit 1
fi
action_toml="${OPS_REPO_ROOT}/vault/actions/${action_id}.toml"
action_toml="${VAULT_ACTION_TOML:-${OPS_REPO_ROOT}/vault/actions/${action_id}.toml}"
if [ ! -f "$action_toml" ]; then
log "ERROR: vault action TOML not found: ${action_toml}"
exit 1