refactor(workflow): add dispatch inputs and replace isPrerelease with force#468
Merged
Conversation
… force 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. Also exposes version and dry_run via workflow_dispatch for manual runs. Re-trigger pattern: force=true, create_release=false, publish=true Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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>
Test Results 3 files 213 suites 32s ⏱️ Results for commit abefe57. |
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.
version,force, anddry_runtoworkflow_dispatchinputs (previously no manual inputs were exposed)forcebypasses the PSGallery existence check when re-triggering a failed job — previously there was no way to do this without a code changeRe-trigger pattern
If
create_releasesucceeds butpublishfails (e.g. expired secret), re-trigger with:force=true, create_release=false, publish=true🤖 Generated with Claude Code