File tree Expand file tree Collapse file tree 4 files changed +37
-16
lines changed
Expand file tree Collapse file tree 4 files changed +37
-16
lines changed Original file line number Diff line number Diff line change 2121 id : body
2222 run : |
2323 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
2531 echo "filename=$FILENAME" >> $GITHUB_OUTPUT
2632 - name : Amalgamate ArduinoJson.h
2733 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')'
1414$( extras/scripts/wandbox/publish.sh " $ARDUINOJSON_H " )
1515---
1616
17- $( awk ' /\* /{ FOUND=1; print; next } { if (FOUND) exit} ' " $CHANGELOG " )
17+ $( extras/scripts/extract_changes.awk " $CHANGELOG " )
1818END
You can’t perform that action at this time.
0 commit comments