This is an automated email from the ASF dual-hosted git repository.

vy pushed a commit to branch parent-10.1.1
in repository https://gitbox.apache.org/repos/asf/logging-log4j-transform.git

commit e6c6c6f05d19c3c701299001648c33b1643b12bf
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Mon Oct 2 15:23:06 2023 +0200

    Improve `generate-email.sh`
---
 .github/generate-email.sh | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/.github/generate-email.sh b/.github/generate-email.sh
index 9e07bd9..ae6b8d3 100755
--- a/.github/generate-email.sh
+++ b/.github/generate-email.sh
@@ -33,20 +33,21 @@ fail_for_invalid_args() {
 
 # Constants
 PROJECT_NAME="Apache Log4j Transformation Tools"
+PROJECT_SITE="https://logging.apache.org/log4j/transform";
 PROJECT_REPO="https://github.com/apache/logging-log4j-transform";
 
PROJECT_DIST_DIR="https://dist.apache.org/repos/dist/dev/logging/log4j-transform";
 PROJECT_VERSION="$2"
 COMMIT_ID="$3"
 
 # Check release notes file
-RELEASE_NOTES_FILE="$SCRIPT_DIR/../target/release-notes/$PROJECT_VERSION.md"
+RELEASE_NOTES_FILE="$SCRIPT_DIR/../src/site/_release-notes/_$PROJECT_VERSION.adoc"
 [ -f "$RELEASE_NOTES_FILE" ] || {
     stderr "Couldn't find release notes file: $RELEASE_NOTES_FILE"
     exit 1
 }
 
 dump_release_notes() {
-    awk "f{print} /^# $PROJECT_VERSION/{f=1}" "$RELEASE_NOTES_FILE"
+    awk "f{print} /^Release date::/{f=1}" "$RELEASE_NOTES_FILE"
 }
 
 case $1 in
@@ -85,14 +86,14 @@ announce)
 To: [email protected], [email protected]
 Title: [ANNOUNCE] $PROJECT_NAME $PROJECT_VERSION released
 
-${PROJECT_NAME}[1] team is pleased to announce the $PROJECT_VERSION
+${PROJECT_NAME} team is pleased to announce the $PROJECT_VERSION
 release. This project contains tools for binary postprocessing of
 projects that use the Apache Log4j API. For further information
 (support, download, etc.) see the project website[1].
 
-[1] $PROJECT_REPO
+[1] $PROJECT_SITE
 
-# Release Notes
+=== Release Notes
 EOF
     dump_release_notes
     ;;

Reply via email to