File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 33 push :
44 pull_request :
55 workflow_dispatch :
6+ inputs :
7+ runPublish :
8+ description : ' Publish Nuget ?'
9+ required : true
10+ default : ' false'
11+ type : choice
12+ options :
13+ - ' true'
14+ - ' false'
615
716jobs :
817 build :
@@ -133,7 +142,7 @@ jobs:
133142 publish-nuget :
134143 runs-on : ubuntu-latest
135144 needs : build
136- if : github.event_name == 'push ' && github.ref_name == github.event.repository.default_branch
145+ if : github.event.inputs.runPublish == 'true ' && github.ref_name == github.event.repository.default_branch
137146 environment :
138147 name : Publish
139148 url : https://www.nuget.org/packages/TestStack.BDDfy/
@@ -206,4 +215,4 @@ jobs:
206215 --notes-file release-notes.md \
207216 --generate-notes
208217 env :
209- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
218+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments