File tree 3 files changed +39
-7
lines changed
3 files changed +39
-7
lines changed Original file line number Diff line number Diff line change
1
+ {{ range .Versions }}
2
+ <a name =" {{ .Tag.Name }} " ></a >
3
+ ## {{ if .Tag.Previous }}[ {{ .Tag.Name }}] ({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})
4
+
5
+ {{ range .Commits -}}
6
+ {{ if not (contains .Type "[ ") }}- {{.Hash.Short}} {{ .Subject }}
7
+ {{ if not (eq (len .Body) 0) }}{{ .Body }}{{ end }}
8
+ {{ range .Refs -}}
9
+ {{ " " }} - #{{ .Ref }}
10
+ {{ end }}
11
+ {{ end }}
12
+ {{ end }}
13
+
14
+ {{ end -}}
Original file line number Diff line number Diff line change
1
+ style : github
2
+ template : CHANGELOG.tpl.md
3
+ info :
4
+ title : CHANGELOG
5
+ repository_url : https://github.com/uazo/cromite
6
+ options :
7
+ commits :
8
+ filters :
9
+ Type :
10
+ - " [AUTO]"
11
+ commit_groups :
12
+ # title_maps: []
13
+ header :
14
+ pattern : " ^(\\ [.*\\ ])?(.*)$"
15
+ pattern_maps :
16
+ - Type
17
+ - Subject
18
+ notes :
19
+ keywords :
20
+ - BREAKING CHANGE
Original file line number Diff line number Diff line change 17
17
description : ' draft? [true/false]'
18
18
required : true
19
19
default : ' false'
20
+ comment :
21
+ description : ' comment'
22
+ required : true
20
23
21
24
env :
22
25
CROMITE_SHA : ${{ github.event.inputs.sha }}
23
26
REMOVEDOCKERSUPPORT : true
24
27
USELOCALIMAGE : true
28
+ COMMENT : ${{ github.event.inputs.comment }}
25
29
26
30
jobs :
27
31
release :
48
52
BRANCH=$(curl https://github.com/uazo/cromite/branch_commits/$CROMITE_SHA | ./pup -p li.branch:last-child a text{} | xargs)
49
53
echo "BRANCH=$BRANCH" >> $GITHUB_ENV
50
54
51
- wget https://github.com/cli/cli/releases/download/v2.18.1/gh_2.18.1_linux_amd64.tar.gz
52
- tar xfz gh_2.18.1_linux_amd64.tar.gz
53
-
54
55
- name : Checkout 'uazo/cromite'
55
56
uses : actions/checkout@v2
56
57
with :
71
72
72
73
echo ${{ secrets.GITHUB_TOKEN }} | $GH auth login --with-token
73
74
74
- echo "\`\`\`" >note
75
- # echo "this is not the official release of bromite but a test version." >>note
76
- # echo "you can try it at your own risk." >>note
77
- echo "\`\`\`" >>note
75
+ echo $COMMENT >note
78
76
79
77
$GH release create $VERSION-$CROMITE_SHA --notes-file note -d
80
78
You can’t perform that action at this time.
0 commit comments