next.js
fec0d9f1 - ci(trigger_release): print workflow inputs before the approval-gated job (#102442)

Commit
1 day ago
ci(trigger_release): print workflow inputs before the approval-gated job (#102442) ### What? The "Trigger Release" workflow now has a `print-inputs` job that runs before `start`. It prints the workflow inputs as JSON, along with the event, ref and SHA, and the triggering actor. The same details go to the log and to the run's summary page. ### Why? Some releases need approval through the `bot-approved` environment before `start` can run. Until now, approvers couldn't see which inputs (release type, semver type, force, dry run) they were approving. ### How? - `print-inputs` is a separate job with no environment and no permissions, so it runs right away. `start` depends on it, so the inputs show up on the run page while approval is pending. A step inside `start` would only run after approval. - It serializes all of `inputs`, so inputs added later are included automatically. - The values reach the script through env vars, so they aren't interpolated into the shell source. ### Verification - `actionlint` (v1.7.7) and `prettier --check` on the workflow: clean - Ran the step script locally with sample values for a manual dispatch and a scheduled run (empty inputs); the log and summary output were as expected - Not run: a real workflow dispatch (this is the release workflow) <!-- NEXT_JS_LLM --> <!-- fleet 445b2005-2480-4b83-b5de-070a7c227291 --> Co-authored-by: vercel-fleet-prod[bot] <318278635+vercel-fleet-prod[bot]@users.noreply.github.com> Co-authored-by: Tobias Koppers <1365881+sokra@users.noreply.github.com>
Author
Parents
Loading