Skip to content

Commit fad8822

Browse files
Skip version resolution on non-PR events so schedule/dispatch runs don't fail (#373)
1 parent ea19a3e commit fad8822

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/Plan.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ jobs:
8585
ImportantFilePatterns: ${{ inputs.ImportantFilePatterns }}
8686

8787
- name: Resolve-Version
88+
# Version resolution requires pull_request context (PR labels + head ref decide the
89+
# bump and the prerelease name). Skip it on non-PR events (schedule, workflow_dispatch,
90+
# push): there ReleaseType is 'None', nothing is published, and Enrich-Settings falls
91+
# back to safe empty defaults. Without this gate the action throws on non-PR events and
92+
# fails the whole run. Fixes #373.
93+
if: github.event_name == 'pull_request'
8894
uses: PSModule/Resolve-PSModuleVersion@d53326c7687d20a7949d457fccd71223856b1890 # v1.1.0
8995
id: Resolve-Version
9096
env:

0 commit comments

Comments
 (0)