refactor(workflow): simplify version handling and add force re-trigger flag#1
Merged
Merged
Conversation
…r flag - Remove isPrerelease input; infer from suffix presence after manifest/input reconciliation - inputs.version with suffix now overrides PSData.Prerelease; bare version = stable release - Add inputs.force to bypass PSGallery existence check for failed-job re-triggers - Remove $versionForChangelog dead code Re-trigger pattern for a failed publish: force=true, create_release=false, publish=true See docs/adr/0001-force-flag-and-inferred-prerelease.md for decision context. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Test Results0 tests 0 ✅ 0s ⏱️ Results for commit 63cfb8e. |
Removed push and pull_request triggers from CI workflow.
This was referenced May 30, 2026
HeyItsGilbert
added a commit
to HeyItsGilbert/ChocoLogParse
that referenced
this pull request
May 30, 2026
Adds full dispatch input surface (`version`, `force`, `dry_run`, `create_release`, `publish`) aligned with HeyItsGilbert/.github#1. Re-trigger pattern for a failed publish: `force=true, create_release=false, publish=true` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
HeyItsGilbert
added a commit
to HeyItsGilbert/Gatekeeper
that referenced
this pull request
May 30, 2026
…sions (#81) @ Aligns with HeyItsGilbert/.github#1. - Removes `isPrerelease` — the reusable workflow now infers prerelease from `PSData.Prerelease` in the manifest - Adds `force` to bypass the PSGallery existence check when re-triggering a failed job - Normalises `create_release`/`publish` expressions to `github.event_name != workflow_dispatch || inputs.X` Re-trigger pattern: `force=true, create_release=false, publish=true` 🤖 Generated with [Claude Code](https://claude.com/claude-code) @ Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
isPrereleaseinput — prerelease is now inferred from whether a suffix is present in the reconciled version stringinputs.versionwith a suffix (e.g.1.2.3-beta) now overrides both the version number andPSData.Prerelease; a bare version (e.g.1.2.3) means stable release even if the manifest carries a prerelease suffixinputs.forceboolean to bypass the PSGallery existence check — for re-triggering a failedpublishjob whencreate_releasealready succeeded (pattern:force=true, create_release=false, publish=true)$versionForChangelogdead codeDecision context
docs/adr/0001-force-flag-and-inferred-prerelease.mdrecords the trade-offs, including the two rejected alternatives (per-job re-run, separate dispatch workflow).Test plan
version: "1.2.3-beta"— verify suffix overrides manifestPSData.Prereleaseversion: "1.2.3"on a module whose manifest has a prerelease suffix — verify stable release publishedforce=true, create_release=false, publish=true— verify only publish job runsdry_run=true— verify no actual publish occurs🤖 Generated with Claude Code