Skip to content

Commit ced5fc8

Browse files
authored
fix: Negated github.event_name to allow manual releases (#187)
1 parent d27ab5b commit ced5fc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/cicd-dotnet.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,15 @@ jobs:
157157

158158
publish-nuget:
159159
name: Publish NuGet
160-
if: ${{ !cancelled() && !failure() && inputs.disablePublish == false && github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
160+
if: ${{ !cancelled() && !failure() && inputs.disablePublish == false && github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' }}
161161
uses: ./.github/workflows/step-dotnet-publish-nuget.yml
162162
needs:
163163
- build
164164
secrets: inherit
165165

166166
release:
167167
name: Release
168-
if: ${{ !cancelled() && !failure() && inputs.disablePublish == false && github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
168+
if: ${{ !cancelled() && !failure() && inputs.disablePublish == false && github.event_name != 'pull_request' && github.actor != 'dependabot[bot]' }}
169169
needs:
170170
- version
171171
- build

0 commit comments

Comments
 (0)