Skip to content

Commit 5edde88

Browse files
committed
(fix): The release message will now include a link to the GitHub compare view at the end
1 parent 5404286 commit 5edde88

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ jobs:
108108
split($0, a, /[\[\]]/)
109109
if (a[2] == ver) { found=1; next }
110110
}
111-
found && /^\[[0-9]+\.[0-9]+\.[0-9]+\]: / { next }
111+
found && match($0, /^\[[0-9]+\.[0-9]+\.[0-9]+\]: (.+)/, m) { link=m[1]; next }
112112
found { print }
113+
END { if (link) print "\n[All Changes](" link ")" }
113114
' CHANGELOG.md | sed -e '/./,$!d' -e :a -e '/^\n*$/{$d;N;ba;}' > /tmp/release-body.md
114115
115116
- name: Create GitHub release

0 commit comments

Comments
 (0)