File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 13
13
description : " release type(alpha, rc, stable)"
14
14
required : true
15
15
default : " alpha"
16
+ add-tag :
17
+ description : " add tag to the release"
18
+ required : true
19
+ default : " false"
16
20
17
21
permissions :
18
22
contents : read
27
31
echo "Invalid release type '${{ github.event.inputs.release-type }}' provided. Valid values are 'alpha', 'rc', 'stable'."
28
32
exit 1
29
33
34
+ - name : Validate add tag
35
+ if : ${{ github.event.inputs.add-tag != 'false' && github.event.inputs.add-tag != 'true' }}
36
+ run : |
37
+ echo "Invalid add tag '${{ github.event.inputs.add-tag }}' provided. Valid values are 'true', 'false'."
38
+ exit 1
39
+
30
40
- name : Checkout branch
31
41
uses : actions/checkout@v4
32
42
with :
54
64
with :
55
65
name : ${{ env.TEMPLATE_NAME }}
56
66
path : template.zip
67
+
68
+ - name : Release template ZIP file To GitHub Release
69
+ uses : softprops/action-gh-release@v2
70
+ if : ${{ github.event.inputs.add-tag == 'true' }}
71
+ with :
72
+ tag_name : ${{ env.TIMESTAMP }}-${{ inputs.publish-branch }}-${{ inputs.release-type }}
73
+ files : template.zip
You can’t perform that action at this time.
0 commit comments