File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ name: "Build Binaries"
44# Do not build branches when a tag is pushed - this is handled by release-binaries.yml
55on :
66 workflow_call :
7+ inputs :
8+ is_release :
9+ description : If true, we're building binaries for a release.
10+ type : boolean
11+ required : false
12+ default : true
713 workflow_dispatch :
814 push :
915 tags-ignore : ' **'
8894
8995 # Update version.moon depending on the event that triggered this workflow.
9096 - name : Update version.moon (release)
91- if : ${{ github.event_name == 'workflow_call' }}
97+ if : ${{ inputs.is_release == true }}
9298 shell : bash
9399 run : |
94100 cd moonscript
97103 cat version.moon
98104
99105 - name : Update version.moon (prerelease)
100- if : ${{ github.event_name != 'workflow_call' }}
106+ if : ${{ inputs.is_release == false }}
101107 shell : bash
102108 run : |
103109 cd moonscript
You can’t perform that action at this time.
0 commit comments