Skip to content

Commit

Permalink
Release script: Adjust Changelog.md parsing (#2866)
Browse files Browse the repository at this point in the history
Fixup after #2865, thanks to @ggreif for noticing!
  • Loading branch information
nomeata authored Oct 29, 2021
1 parent e371ae7 commit b76cda2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
id: read_changelog
run: |
export VERSION='${{ steps.get_version.outputs.VERSION }}'
perl -0777 -ne '/^# Motoko compiler changelog\n\n== (??{quotemeta($ENV{VERSION})}) \(\d\d\d\d-\d\d-\d\d\)\n\n(.*?)^==/sm or die "Changelog does not look right for this version\n" ; print $1' Changelog.md > changelog-extract.md
perl -0777 -ne '/^# Motoko compiler changelog\n\n## (??{quotemeta($ENV{VERSION})}) \(\d\d\d\d-\d\d-\d\d\)\n\n(.*?)^##/sm or die "Changelog does not look right for this version\n" ; print $1' Changelog.md > changelog-extract.md
cat changelog-extract.md
# need to mangle to use with set-output, see https://github.com/svenstaro/upload-release-action/pull/49/files
r="$(cat changelog-extract.md)"
Expand Down

0 comments on commit b76cda2

Please sign in to comment.