From 6f78aac867cc0c2447fc00802fefb008061876ff Mon Sep 17 00:00:00 2001 From: Derek Date: Mon, 3 Aug 2026 15:47:57 +1000 Subject: [PATCH] fix(ci): accept from-head and bump on dispatch, like the rest of the fleet `hyperi-ci publish` sends tag, from-head and bump. This caller did not declare all three, so a release from HEAD failed with HTTP 422 before the plan job started. workflow_dispatch.inputs only work when declared in the workflow that RECEIVES the event, so the reusable workflow cannot supply them - every caller declares and forwards them itself, and drifts on its own. Found by `hyperi-ci audit-callers`, which reports this against the dispatch contract rather than waiting for the next release to fail (hyperi-ci#88). --- .github/workflows/ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c45d74..6bc7029 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,8 +16,19 @@ name: CI inputs: tag: type: string - required: true + required: false + default: "" description: "Tag to publish (e.g. v1.3.0)" + from-head: + type: string + required: false + default: "" + description: "'true' to release/retry the current HEAD." + bump: + type: string + required: false + default: "auto" + description: "from-head version: auto | patch | minor | X.Y.Z (exact)." jobs: ci: @@ -40,4 +51,6 @@ jobs: uses: hyperi-io/hyperi-ci/.github/workflows/rust-ci.yml@main with: tag: ${{ inputs.tag || '' }} + from-head: ${{ inputs.from-head || '' }} + bump: ${{ inputs.bump || 'auto' }} secrets: inherit