From 4a78eeb9f0774d2ad569346331c147d592e207c3 Mon Sep 17 00:00:00 2001 From: Gilbert Sanchez Date: Sat, 30 May 2026 09:30:40 -0700 Subject: [PATCH 1/2] refactor(workflow): standardise publish dispatch inputs Add version, force, dry_run, create_release, publish inputs. Replaces bare workflow_dispatch with no inputs. Use github.event_name != workflow_dispatch || inputs.X to default create_release/publish to true on push events. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/publish.yaml | 36 +++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9338975..dafe751 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -4,7 +4,41 @@ on: branches: - main workflow_dispatch: + inputs: + version: + description: "The version to publish. Leave empty to use the version in the module manifest." + required: false + type: string + force: + description: "If true, bypass the PSGallery version existence check. Use when re-triggering a failed publish job (pattern: force=true, create_release=false, publish=true)." + required: false + type: boolean + default: false + dry_run: + description: "If true, skip actual publishing and just validate the workflow logic." + required: false + type: boolean + default: false + create_release: + description: "If false, skip creating the GitHub release and tag." + required: false + type: boolean + default: true + publish: + description: "If false, skip publishing to PowerShell Gallery." + required: false + type: boolean + default: true +permissions: + contents: write jobs: - build: + publish: + name: Publish Module uses: HeyItsGilbert/.github/.github/workflows/PublishModule.yml@main + with: + version: ${{ inputs.version || '' }} + force: ${{ inputs.force || false }} + dry_run: ${{ inputs.dry_run || false }} + create_release: ${{ github.event_name != 'workflow_dispatch' || inputs.create_release }} + publish: ${{ github.event_name != 'workflow_dispatch' || inputs.publish }} secrets: inherit From 774fb6a73f86eb026cf2cdb5c79951e9b80e7219 Mon Sep 17 00:00:00 2001 From: Gilbert Sanchez Date: Sat, 30 May 2026 11:20:41 -0700 Subject: [PATCH 2/2] Update Pester version from 5.6.1 to 5.7.1 --- requirements.psd1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.psd1 b/requirements.psd1 index 6b94096..83524af 100644 --- a/requirements.psd1 +++ b/requirements.psd1 @@ -3,7 +3,7 @@ Target = 'CurrentUser' } 'Pester' = @{ - Version = '5.6.1' + Version = '5.7.1' Parameters = @{ SkipPublisherCheck = $true }