Skip to content
Merged
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
8 changes: 5 additions & 3 deletions .github/workflows/PublishModuleToPowerShellGallery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ jobs:

- name: Check if PSGallery Version Exists
id: check_psgallery
if: steps.check_release.outputs.exists == 'false'
# Run regardless of whether the GitHub release exists, so a release that was
# created but never published can still be recovered (see Publish gating below).
if: steps.template_guard.outputs.is_template == 'false'
shell: pwsh
env:
VERSION: ${{ steps.version.outputs.version }}
Expand All @@ -82,7 +84,7 @@ jobs:
}

- name: Bootstrap
if: steps.check_release.outputs.exists == 'false'
if: steps.check_release.outputs.exists == 'false' || steps.check_psgallery.outputs.exists == 'false'
shell: pwsh
run: ./build.ps1 -Task Init -Bootstrap

Expand Down Expand Up @@ -144,7 +146,7 @@ jobs:
}

- name: Publish to PSGallery
if: steps.check_release.outputs.exists == 'false' && steps.check_psgallery.outputs.exists == 'false'
if: steps.check_psgallery.outputs.exists == 'false'
shell: pwsh
env:
PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }}
Expand Down
Loading