@@ -18,14 +18,21 @@ const data = {
1818 workflow_dispatch : {
1919 inputs : {
2020 do_release : {
21- description : 'Create a release and upload files? (type "yes" to create) ' ,
21+ description : 'Create a release and upload files?' ,
2222 required : true ,
23- default : "no" ,
23+ default : false ,
24+ type : "boolean" ,
2425 } ,
2526 release : {
2627 description : "Release tag and name" ,
2728 required : true ,
2829 } ,
30+ updateExisting : {
31+ description : "Update existing release?" ,
32+ required : true ,
33+ default : false ,
34+ type : "boolean" ,
35+ }
2936 } ,
3037 } ,
3138 } ,
@@ -43,8 +50,9 @@ const data = {
4350 name : "Create release" ,
4451 uses : "actions/create-release@v1" ,
4552 id : "create_release" ,
46- if : "${{ github.event.inputs.do_release == 'yes' }}" ,
53+ if : "${{ github.event.inputs.do_release }}" ,
4754 with : {
55+ allowUpdates : '${{ github.event.inputs.updateExisting }}' ,
4856 tag_name : "${{ github.event.inputs.release }}" ,
4957 release_name : "${{ github.event.inputs.release }}" ,
5058 draft : false ,
@@ -110,7 +118,7 @@ const data = {
110118 id : "upload-releases" ,
111119 name : "Upload to releases" ,
112120 uses : "ncipollo/release-action@v1" ,
113- if : "\${{ github.event.inputs.do_release == 'yes' }}" ,
121+ if : "\${{ github.event.inputs.do_release }}" ,
114122 with : {
115123 allowUpdates : true ,
116124 tag : "${{ github.event.inputs.release }}" ,
0 commit comments