File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -37,18 +37,26 @@ jobs:
3737 id : changelog
3838 run : |
3939 # Parse the changelog for common links
40- _links="$(grep -P '^\[.*]:.+' ${GITHUB_WORKSPACE}/CHANGELOG.md | sort -u)"
40+ _links="$(egrep '^\[.*]:.+' ${GITHUB_WORKSPACE:-. }/CHANGELOG.md | sort -u)"
4141 _links="${_links//'%'/'%25'}"
42- _links="${_links//$'\n'/'%0A'}"
42+ # _links="${_links//$'\n'/'%0A'}"
4343 _links="${_links//$'\r'/'%0D'}"
4444 # Set output 'links' to $_links
4545 DELIMITER=$(uuidgen)
4646 echo "links<<${DELIMITER}" >> "${GITHUB_OUTPUT}"
4747 echo "$_links" >> "${GITHUB_OUTPUT}"
4848 echo "${DELIMITER}" >> "${GITHUB_OUTPUT}"
4949
50- - uses : softprops/action-gh-release@v1
50+ - id : prune-footnotes
51+ run : |
52+ tmp.md < "${{ steps.changelog_reader.outputs.changes }}"
53+ tmp.md << ${{ steps.changelog.outputs.links }}
54+ DELIMITER=$(uuidgen)
55+ echo "body<<${DELIMITER}" >> "${GITHUB_OUTPUT}"
56+ npx gfm-footnotes -i tmp.md > "${GITHUB_OUTPUT}"
57+ echo "${DELIMITER}" >> "${GITHUB_OUTPUT}"
58+
59+ - uses : softprops/action-gh-release@v2
5160 with :
5261 body : |
53- ${{ steps.changelog_reader.outputs.changes }}
54- ${{ steps.changelog.outputs.links }}
62+ ${{ steps.prune-footnotes.outputs.body }}
Original file line number Diff line number Diff line change 6565 "eslint-remote-tester-repositories" : " ^1.0.1" ,
6666 "eslint-scope" : " ^3.7.3" ,
6767 "espree" : " ^3.5.4" ,
68+ "gfm-footnotes" : " ^1.0.0" ,
6869 "glob" : " =10.3.7" ,
6970 "istanbul" : " ^0.4.5" ,
7071 "jackspeak" : " =2.1.1" ,
You can’t perform that action at this time.
0 commit comments