Skip to content

fix(ci): accept a tag input on manual release dispatch - #113

Merged
CybotTM merged 1 commit into
mainfrom
fix/release-dispatch-tag
Jul 29, 2026
Merged

fix(ci): accept a tag input on manual release dispatch#113
CybotTM merged 1 commit into
mainfrom
fix/release-dispatch-tag

Conversation

@CybotTM

@CybotTM CybotTM commented Jul 29, 2026

Copy link
Copy Markdown
Member

The Release run dispatched on main on 2026-07-28 (run 30373084777) failed in the reusable's Validate inputs step:

create-github-release needs a tag, but the 'tag' input is empty and this run is on a branch ref ('main'). Dispatch the workflow on the tag, pass the 'tag' input, or set create-github-release: false.

workflow_dispatch declared no inputs, so there was no way to pass one — the trigger could only ever succeed when dispatched on a tag ref.

This adds the tag input and forwards it to netresearch/.github/.github/workflows/node-release.yml. On a tag push inputs.tag is undefined and resolves to '', so the reusable falls back to the ref as before.

Separate from this PR: main is at chore(release): 2.0.0 and package.json says 2.0.0, but no 2.0.0 tag exists — the highest tag is 1.3.4. The 2.0.0 release still needs its signed tag pushed.

`workflow_dispatch` declared no inputs, so a manual run always reached the
reusable with an empty `tag`. With `create-github-release: true` that is
rejected in "Validate inputs":

    create-github-release needs a tag, but the 'tag' input is empty and
    this run is on a branch ref ('main').

The dispatch trigger was therefore unusable from a branch. Runs on a tag
ref keep working — `inputs.tag` is undefined there and resolves to ''.

Signed-off-by: Sebastian Mendel <info@sebastianmendel.de>
@sonarqubecloud

Copy link
Copy Markdown

@CybotTM
CybotTM merged commit d1f763e into main Jul 29, 2026
10 checks passed
@CybotTM
CybotTM deleted the fix/release-dispatch-tag branch July 29, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant