File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 19
19
distribution : ' adopt'
20
20
cache : maven
21
21
22
- - name : run maven
22
+ - name : build
23
23
run : ./mvnw -Drevision=${{github.ref_name}} -Dchangelist="" --batch-mode --update-snapshots package
24
24
25
+ - name : Extract release changes
26
+ id : extract_changes
27
+ run : |
28
+ TAG=${{ github.ref_name }}
29
+ CHANGES="$(perl -nle '($v = "'"$TAG"'") =~ s/^v//; print if /^### $v / ... /^### / and not /^###/' CHANGES.md)"
30
+ echo "CHANGES<<EOF" >> $GITHUB_OUTPUT
31
+ echo "$CHANGES" >> $GITHUB_OUTPUT
32
+ echo "EOF" >> $GITHUB_OUTPUT
33
+
25
34
- name : create release
26
35
uses : actions/create-release@v1
27
36
id : create_release
30
39
prerelease : false
31
40
tag_name : ${{ github.ref }}
32
41
release_name : ${{ github.ref }}
33
- body_path : changeLog.md
42
+ body : ${{ steps.extract_changes.outputs.CHANGES }}
34
43
env :
35
44
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
45
File renamed without changes.
You can’t perform that action at this time.
0 commit comments