From 428ae2c6c94442d2b2b19c323bee45dc2b6f3f43 Mon Sep 17 00:00:00 2001 From: Luni-4 Date: Mon, 4 Jan 2021 16:53:08 +0100 Subject: [PATCH] Add a comment to explain release notes code --- .github/workflows/deploy.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ffb51f7..475b28c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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