🪲 [Fix]: Resolve the current version on non-PR runs (bump Resolve-PSModuleVersion to v1.1.5) (#375)
The Plan job no longer fails on schedule and workflow_dispatch events. Resolve-PSModuleVersion is bumped to v1.1.5, which resolves the current published version on non–pull-request events instead of throwing.
- Fixes #373
Fixed: non–pull-request runs (schedule / workflow_dispatch)
Since v6.1.0 the Plan job runs Resolve-Version on every event, and the action threw "...must be run from a pull_request event" on non-PR events — failing the whole run (every job needs: Plan). Resolve-PSModuleVersion v1.1.5 (PSModule/Resolve-PSModuleVersion#10) fixes this at the source: on a non-PR event it returns the current published version — no bump, no prerelease, nothing published — floored at 0.0.0 for a module that has never been released. Pull-request and merge-to-default-branch behavior is unchanged: labels drive the bump (patch default), and the version preview on regular PRs is retained.
Technical Details
.github/workflows/Plan.yml: bump theResolve-Versionpin8d1dac7(v1.1.4) →6a59a88(v1.1.5). One-line change — noPlangate orTest-ModuleLocalfallback is needed, because v1.1.5 always populatesSettings.Module.Versionon non-PR events.- This supersedes this PR's earlier
Plan.ymlgate +999.0.0fallback approach, replaced by the root-cause fix in the shared action. - Validated: a
workflow_dispatchself-test run on this branch completes (previously failed atPlan); the PR self-test resolves a version as before.