We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b722550 commit d42f250Copy full SHA for d42f250
1 file changed
.github/workflows/build.yml
@@ -3,6 +3,12 @@ on:
3
push:
4
pull_request:
5
workflow_dispatch:
6
+ inputs:
7
+ runPublish:
8
+ description: 'Publish Nuget ?'
9
+ required: true
10
+ default: 'false'
11
+ type: boolean
12
13
jobs:
14
build:
@@ -133,7 +139,7 @@ jobs:
133
139
publish-nuget:
134
140
runs-on: ubuntu-latest
135
141
needs: build
136
- if: github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
142
+ if: github.event.inputs.runPublish == 'true' && github.ref_name == github.event.repository.default_branch
137
143
environment:
138
144
name: Publish
145
url: https://www.nuget.org/packages/TestStack.BDDfy/
@@ -206,4 +212,4 @@ jobs:
206
212
--notes-file release-notes.md \
207
213
--generate-notes
208
214
env:
209
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
215
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments