File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 - " bugbash-*"
1111
1212 workflow_dispatch :
13+ inputs :
14+ tag :
15+ description : " Tag to build (e.g. v1.2.3). Leave empty for a snapshot build of the current ref."
16+ type : string
17+ required : false
1318
1419jobs :
1520 cli :
3035 with :
3136 fetch-depth : 0
3237 fetch-tags : true
38+ ref : ${{ inputs.tag || github.ref }}
3339
3440 - name : Setup JFrog
3541 uses : ./.github/actions/setup-jfrog
7884 uses : goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0
7985 with :
8086 version : v2.14.3
81- args : release --skip=publish ${{ ! startsWith(github.ref, 'refs/tags/') && '--snapshot ' || '' }}
87+ args : release --skip=publish ${{ ( startsWith(github.ref, 'refs/tags/') || inputs.tag) && '' || '--snapshot ' }}
8288
8389 - name : Verify Windows binary signatures
8490 run : |
@@ -114,6 +120,7 @@ jobs:
114120 with :
115121 fetch-depth : 0
116122 fetch-tags : true
123+ ref : ${{ inputs.tag || github.ref }}
117124
118125 - name : Setup JFrog
119126 uses : ./.github/actions/setup-jfrog
You can’t perform that action at this time.
0 commit comments