From 8526fc57128cc8b71b11d23a56d8bc1b73923899 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Dachary?= Date: Mon, 19 Dec 2022 16:46:41 +0100 Subject: [PATCH] [CI] Add link to release notes in binary releases --- .woodpecker/release-version.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.woodpecker/release-version.yml b/.woodpecker/release-version.yml index 21e4ea4af6..7186ef30e8 100644 --- a/.woodpecker/release-version.yml +++ b/.woodpecker/release-version.yml @@ -104,7 +104,8 @@ pipeline: - echo "$${CI_COMMIT_TAG##v}" | grep -qi '\-rc' && export RELEASETYPE="--prerelease" && echo "Uploading as Pre-Release" - echo "$${CI_COMMIT_TAG##v}" | grep -qi '\-test' && export RELEASETYPE="--draft" && echo "Uploading as Draft" - test $${RELEASETYPE+false} || echo "Uploading as Stable" - - tea release create $ASSETS --tag $CI_COMMIT_TAG --title $CI_COMMIT_TAG $${RELEASETYPE} + - anchor=$(echo $CI_COMMIT_TAG | sed -e 's/^v//' -e 's/[^a-zA-Z0-9]/-/g') + - tea release create $ASSETS --note "See https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#$${anchor}" --tag $CI_COMMIT_TAG --title $CI_COMMIT_TAG $${RELEASETYPE} secrets: - releaseteamtoken - releaseteamuser