From: Dmitry Misharov Date: Mon, 1 Dec 2025 16:54:57 +0000 (+0100) Subject: add release notes from NEWS.md when making a release X-Git-Tag: 3.0-PRE-CLANG-FORMAT-WEBKIT~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f8a5a4fdd28654dfe981ebd43d3dc1128a198c9;p=thirdparty%2Fopenssl.git add release notes from NEWS.md when making a release Reviewed-by: Eugene Syromiatnikov Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/29275) --- diff --git a/.github/workflows/make-release.yml b/.github/workflows/make-release.yml index 204303d2be4..e4de1d95756 100644 --- a/.github/workflows/make-release.yml +++ b/.github/workflows/make-release.yml @@ -39,5 +39,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} run: | - VERSION=$(echo ${{ github.ref_name }} | cut -d "-" -f 2-) - gh release create ${{ github.ref_name }} -t "OpenSSL $VERSION" -d --notes " " -R ${{ github.repository }} ${{ github.ref_name }}/assets/* + VERSION=$(echo "$GITHUB_REF_NAME" | cut -d "-" -f 2-) + PRE_RELEASE=$([[ "$GITHUB_REF_NAME" =~ alpha|beta ]] && echo "-p" || echo "") + 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/"*