File tree 4 files changed +37
-16
lines changed
4 files changed +37
-16
lines changed Original file line number Diff line number Diff line change 21
21
id : body
22
22
run : |
23
23
FILENAME=RELEASE.md
24
- extras/scripts/get-release-body.sh ${{ steps.init.outputs.tag }} CHANGELOG.md | tee $FILENAME
24
+ tee $FILENAME <<END
25
+ ## Changes
26
+
27
+ $(extras/scripts/extract_changes.awk CHANGELOG.md)
28
+
29
+ [View version history](https://github.com/bblanchon/ArduinoJson/blob/${{ steps.init.outputs.tag }}/CHANGELOG.md)
30
+ END
25
31
echo "filename=$FILENAME" >> $GITHUB_OUTPUT
26
32
- name : Amalgamate ArduinoJson.h
27
33
id : amalgamate_h
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/awk -f
2
+
3
+ # Start echoing after the first list item
4
+ /\* / {
5
+ STARTED= 1
6
+ EMPTY_LINE= 0
7
+ }
8
+
9
+ # Remember if we have seen an empty line
10
+ /^ [[:space :] ]* $ / {
11
+ EMPTY_LINE= 1
12
+ }
13
+
14
+ # Exit when seeing a new version number
15
+ /^ v[[:digit :] ] / {
16
+ if (STARTED) exit
17
+ }
18
+
19
+ # Print if the line is not empty
20
+ # and restore the empty line we have skipped
21
+ ! /^ [[:space :] ]* $ / {
22
+ if (STARTED) {
23
+ if (EMPTY_LINE) {
24
+ print " "
25
+ EMPTY_LINE= 0
26
+ }
27
+ print
28
+ }
29
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ date: '$(date +'%Y-%m-%d')'
14
14
$( extras/scripts/wandbox/publish.sh " $ARDUINOJSON_H " )
15
15
---
16
16
17
- $( awk ' /\* /{ FOUND=1; print; next } { if (FOUND) exit} ' " $CHANGELOG " )
17
+ $( extras/scripts/extract_changes.awk " $CHANGELOG " )
18
18
END
You can’t perform that action at this time.
0 commit comments