refactor(workflow): replace isPrerelease with force input#186
Merged
Conversation
Aligns with PowerShellOrg/.github#12 which removes isPrerelease (now inferred from PSData.Prerelease in the manifest) and adds force to bypass the PSGallery existence check when re-triggering a failed job. Re-trigger pattern: force=true, create_release=false, publish=true Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the publish workflow inputs to align with the reusable PowerShell release workflow by replacing the prerelease flag with a force-publish option.
Changes:
- Removes the
isPrereleaseworkflow input and pass-through. - Adds a
forceworkflow input and passes it to the reusable release workflow. - Documents the intended failed-publish re-trigger pattern.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Required to actually use the force re-trigger pattern documented in the previous commit. Without these inputs, operators could not set create_release=false when re-triggering a failed publish job. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
inputs context is empty on non-dispatch triggers; the previous `!= false` expression evaluated empty as equal to false under GitHub Actions loose comparison, skipping both jobs on push. Use `github.event_name != 'workflow_dispatch' || inputs.X` instead: short-circuits to true on push, falls through to the explicit input value on dispatch. 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
Aligns with PowerShellOrg/.github#12.
isPrereleasedispatch input andwith:pass-through — the reusable workflow now infers prerelease fromPSData.Prereleasein the manifest automaticallyforcedispatch input to bypass the PSGallery existence check when re-triggering a failed jobRe-trigger pattern
If
create_releasesucceeds butpublishfails (e.g. expired secret), re-trigger with:force=true, create_release=false, publish=true🤖 Generated with Claude Code