Skip to content

Commit 98b5f42

Browse files
committed
warn on errors
1 parent e804884 commit 98b5f42

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ jobs:
3636
- name: Publish Module to PowerShell Gallery
3737
uses: pcgeek86/publish-powershell-module-action@v20
3838
continue-on-error: true
39-
id: publish-module
39+
id: publish-modules
4040
with:
4141
NuGetApiKey: ${{ secrets.PS_GALLERY_KEY }}
42+
43+
- name: Warn if previous step failed
44+
if: steps.publish-modules.outcome == 'failure'
45+
run: |
46+
echo "::warning::Step 'publish-modules' failed but was ignored due to continue-on-error."
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ permissions:
3030
contents: read
3131

3232
jobs:
33-
build:
33+
validate:
3434
permissions:
3535
contents: read # for actions/checkout to fetch code
3636
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results

0 commit comments

Comments
 (0)