Add a comment to explain release notes code

This commit is contained in:
Luni-4
2021-01-04 16:53:08 +01:00
committed by Emilio Cobos Álvarez
parent 4e578fb2da
commit 428ae2c6c9
+5
View File
@@ -34,6 +34,11 @@ jobs:
run: |
VERSION=$(cargo pkgid | cut -d# -f2 | cut -d: -f2)
echo "::set-output name=version::$VERSION"
# Steps to extract the last release notes from CHANGES:
# 1. Remove the first three lines
# 2. Stop at the next heading level
# 3. Remove the last line
# 4. Deindent the bullet points to avoid a markdown code block
tail -n +3 CHANGES | sed '/^##/q' |
sed '$ d' | awk '{$1=$1};1' > CHANGES.txt