Skip to content

Commit 3876d0d

Browse files
authored
Merge pull request #77 from Plant-Food-Research-Open/workflows
Workflows
2 parents 402b414 + ac787c2 commit 3876d0d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
publish-nuget:
2626
name: Publish Nuget
2727
needs: [ unit-tests ]
28-
if: ${{ github.ref_name == 'main' && github.event_name != 'pull_request' }}
28+
if: ${{ github.ref_name == 'main' && github.event_name != 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository }}
2929
uses: ./.github/workflows/publish-svs.yml
3030
secrets: inherit
3131
with:
@@ -34,7 +34,7 @@ jobs:
3434
publish-nuget-beta:
3535
name: Publish Nuget Beta
3636
needs: [ unit-tests ]
37-
if: ${{ github.ref_name != 'main' }}
37+
if: ${{ github.ref_name != 'main' && github.event.pull_request.head.repo.full_name == github.repository }}
3838
uses: ./.github/workflows/publish-svs.yml
3939
secrets: inherit
4040
with:

0 commit comments

Comments
 (0)