]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
add release notes from NEWS.md when making a release
authorDmitry Misharov <dmitry@openssl.org>
Mon, 1 Dec 2025 17:14:02 +0000 (18:14 +0100)
committerNeil Horman <nhorman@openssl.org>
Wed, 3 Dec 2025 14:31:35 +0000 (09:31 -0500)
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29271)

.github/workflows/make-release.yml

index cda9e88a494493fa78046140f5a691d3a6d31a11..e4de1d957566c5f9fc518444b661fc91001342dc 100644 (file)
@@ -39,6 +39,7 @@ jobs:
       env:
         GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
       run: |
-        VERSION="$(echo "$GITHUB_REF_NAME" | cut -d '-' -f 2-)"
+        VERSION=$(echo "$GITHUB_REF_NAME" | cut -d "-" -f 2-)
         PRE_RELEASE=$([[ "$GITHUB_REF_NAME" =~ alpha|beta ]] && echo "-p" || echo "")
-        gh release create "$GITHUB_REF_NAME" $PRE_RELEASE -t "OpenSSL $VERSION" -d --notes " " -R "$GITHUB_REPOSITORY" "$GITHUB_REF_NAME/assets/"*
+        NOTES=$(curl -s "https://api.openssl.org/release-metadata/news/?version=$VERSION&capture_title=False")
+        gh release create "$GITHUB_REF_NAME" $PRE_RELEASE -t "OpenSSL $VERSION" -d --notes "$NOTES" -R "$GITHUB_REPOSITORY" "$GITHUB_REF_NAME/assets/"*