Skip to content

Commit

Permalink
fix: Only allow publish/release on push
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Stühmer <me@samtrion.net>
  • Loading branch information
samtrion authored Dec 17, 2024
1 parent 8524dc9 commit 3ddb537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cicd-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:

publish-nuget:
name: Publish NuGet
if: ${{ inputs.disablePublish == false && github.actor != 'dependabot[bot]' }}
if: ${{ inputs.disablePublish == false && github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
uses: ./.github/workflows/step-dotnet-publish-nuget.yml
needs:
- build
Expand All @@ -155,7 +155,7 @@ jobs:

release:
name: Release
if: ${{ inputs.disablePublish == false && github.actor != 'dependabot[bot]' }}
if: ${{ inputs.disablePublish == false && github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
needs:
- version
- build
Expand Down

0 comments on commit 3ddb537

Please sign in to comment.