Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/Plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ jobs:
ImportantFilePatterns: ${{ inputs.ImportantFilePatterns }}

- name: Resolve-Version
# Version resolution requires pull_request context (PR labels + head ref decide the
# bump and the prerelease name). Skip it on non-PR events (schedule, workflow_dispatch,
# push): there ReleaseType is 'None', nothing is published, and Enrich-Settings falls
# back to safe empty defaults. Without this gate the action throws on non-PR events and
# fails the whole run. Fixes #373.
if: github.event_name == 'pull_request'
Comment on lines +89 to +93
uses: PSModule/Resolve-PSModuleVersion@d53326c7687d20a7949d457fccd71223856b1890 # v1.1.0
id: Resolve-Version
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Test-ModuleLocal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ jobs:
WorkingDirectory: ${{ fromJson(inputs.Settings).WorkingDirectory }}
Prescript: | # This is to speed up module loading in Pester.
Install-PSResource -Repository PSGallery -TrustRepository -Name PSCustomObject
Import-Module -Name '${{ steps.import-module.outputs.name }}' -RequiredVersion '${{ fromJson(inputs.Settings).Module.Version }}'
Import-Module -Name '${{ steps.import-module.outputs.name }}' -RequiredVersion '${{ fromJson(inputs.Settings).Module.Version != '' && fromJson(inputs.Settings).Module.Version || '999.0.0' }}'
Loading