File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2727 VERSION="${{ github.ref_name }}"
2828 # Escape dots in version for regex
2929 VERSION_ESCAPED=$(echo "$VERSION" | sed 's/\./\\./g')
30- # Use awk to extract content: start at version header, stop at next ## header
31- CHANGES=$(awk "BEGIN{p=0} /^# \[$VERSION_ESCAPED/{p=1;next} /^# \[/{p=0} p" CHANGELOG | sed '/^$/d' )
30+ # Use awk to extract content: start at version header, stop at next # header
31+ CHANGES=$(awk "/^# \[$VERSION_ESCAPED\] /{p=1;next} /^# \[/{p=0} p" CHANGELOG.md )
3232
3333 if [ -z "$CHANGES" ]; then
3434 echo "CHANGELOG_CONTENT=No changelog entry found for this version." >> $GITHUB_OUTPUT
3939 echo "EOF" >> $GITHUB_OUTPUT
4040 fi
4141 else
42- echo "CHANGELOG_CONTENT=CHANGELOG not found." >> $GITHUB_OUTPUT
42+ echo "CHANGELOG_CONTENT=CHANGELOG.md not found." >> $GITHUB_OUTPUT
4343 fi
4444
4545 - name : Create header archive
You can’t perform that action at this time.
0 commit comments