diff --git a/docker/runner/entrypoint-runner.sh b/docker/runner/entrypoint-runner.sh index 48e7258..f13d9f5 100644 --- a/docker/runner/entrypoint-runner.sh +++ b/docker/runner/entrypoint-runner.sh @@ -55,6 +55,9 @@ context=$(grep -E '^context\s*=' "$action_toml" \ log "Action: ${action_id}, formula: ${formula}, context: ${context:-}" +# 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" diff --git a/formulas/release.sh b/formulas/release.sh index 73c3213..cc46950 100644 --- a/formulas/release.sh +++ b/formulas/release.sh @@ -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