From ab6e60267852c37c67c54012715703ca01fccc17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Tue, 14 Nov 2023 08:42:45 +0100 Subject: [PATCH] Match pre-release versions in do-release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nikola Forró --- .github/workflows/do-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/do-release.yml b/.github/workflows/do-release.yml index 1f8d768..257598a 100644 --- a/.github/workflows/do-release.yml +++ b/.github/workflows/do-release.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v3 - name: Create GitHub release run: | - VERSION=$(grep -oP '^# \K[0-9.]*' CHANGELOG.md | head -n 1) + VERSION=$(grep -oP '^# \K[0-9.]+([.\-_][a-zA-Z0-9.\-_]+)?' CHANGELOG.md | head -n 1) # Take the lines between the first two headers from CHANGELOG.md, # and use it as a description for the new release. CHANGELOG=$(awk 'BEGIN { first = 0 } /^# / { if (first == 0) { first = 1 } else { exit } } /^[^#]/ { print $0 }' CHANGELOG.md)