Add version_level input to nightly builds workflow for flexible pre-release bumping#1163
Conversation
Agent-Logs-Url: https://github.com/Romanitho/Winget-AutoUpdate/sessions/f12af38c-2092-492d-9fe4-12123ec203c2 Co-authored-by: Romanitho <96626929+Romanitho@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the GitFlow nightly builds GitHub Actions workflow to allow manually dispatched nightly builds to choose the SemVer pre-release bump level (prepatch/preminor/premajor) when the previous tag is stable, while keeping scheduled nightly behavior unchanged.
Changes:
- Added a
workflow_dispatchinputversion_level(choice:prepatch/preminor/premajor, defaultpreminor). - Updated the stable-tag path to use the selected
version_levelfor manual dispatches, and keeppreminorfor scheduled runs.
❌MegaLinter analysis: Error
Detailed Issues❌ REPOSITORY / kingfisher - 1 errorLinter output file not found ❌ REPOSITORY / osv-scanner - 1 errorLinter output file not found
|

The nightly build workflow hardcoded
preminorwhen transitioning from a stable tag to a pre-release, making it impossible to trigger apremajorbump (e.g.v2.x.x→v3.0.0-0) via manual dispatch.Changes
workflow_dispatchinput — adds aversion_levelchoice (prepatch/preminor/premajor, defaultpreminor) surfaced in the GitHub Actions UI when triggering manuallyRELEASE_TYPElogic — when the previous tag is stable, manual dispatches now use the selectedversion_level; scheduled runs retain the existingpreminorfallback; theprereleasepath (previous tag already pre-release) is untouched