Skip to content

Commit c822ead

Browse files
author
Gurpreet Singh
committed
add check if any nugets should be published
1 parent 8d882d7 commit c822ead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
semver: ${{ steps.gitversion.outputs.semVer }}
1818
fullsemver: ${{ steps.gitversion.outputs.fullSemVer }}
1919
nugetversion: ${{ steps.gitversion.outputs.fullSemVer }}
20-
20+
publishNuget: ${{ steps.changes.outputs.BddfyUpdated == 'true' || steps.changes.outputs.SamplesUpdated == 'true' }}
2121
steps:
2222
- name: Checkout code
2323
uses: actions/checkout@v5
@@ -201,7 +201,7 @@ jobs:
201201
publish-nuget:
202202
runs-on: ubuntu-latest
203203
needs: build
204-
if: github.event.inputs.runPublish == 'true' || github.ref_name == github.event.repository.default_branch
204+
if: needs.build.outputs.publishNuget == 'true' && (github.event.inputs.runPublish == 'true' || github.ref_name == github.event.repository.default_branch)
205205
environment:
206206
name: Publish
207207
url: https://www.nuget.org/packages/TestStack.BDDfy/

0 commit comments

Comments
 (0)