Skip to content

Commit

Permalink
Nuget publish only when not pull request (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkadi-a committed Feb 22, 2024
1 parent 66ab864 commit 607d5b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
# with:
# dotnet-version: 3.1.200

- uses: 8BitJonny/gh-get-current-pr@3.0.0
id: PR
with:
sha: ${{ github.event.pull_request.head.sha }}

# Publish
- name: publish on version change
id: publish_nuget
Expand Down Expand Up @@ -55,3 +60,4 @@ jobs:

# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
# INCLUDE_SYMBOLS: false
if: steps.PR.outputs.pr_found != 'true'

0 comments on commit 607d5b6

Please sign in to comment.