Skip to content

Commit 9e5b2da

Browse files
committed
leverage continueIfAlreadyPublished
1 parent b396445 commit 9e5b2da

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/publish-to-psgallery.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,7 @@ jobs:
3636
- name: Publish Module to PowerShell Gallery
3737
#formerly pcgeek86/publish-powershell-module-action@v20
3838
uses: Pxtl/[email protected]
39-
continue-on-error: true
4039
id: publish-modules
4140
with:
4241
NuGetApiKey: ${{ secrets.PS_GALLERY_KEY }}
43-
44-
- name: Warn if previous step failed
45-
if: steps.publish-modules.outcome == 'failure'
46-
shell: pwsh
47-
run: |
48-
"::warning::Step 'publish-modules' failed but was ignored due to continue-on-error."
42+
continueIfAlreadyPublished: true

0 commit comments

Comments
 (0)