Skip to content

Commit

Permalink
Fix generate-email.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
vy committed May 8, 2024
1 parent 5bfbb93 commit fa23196
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/generate-email.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ PROJECT_VERSION="$2"
COMMIT_ID="$3"

# Check release notes file
RELEASE_NOTES_FILE="$SCRIPT_DIR/../src/site/_release-notes/_$PROJECT_VERSION.adoc"
RELEASE_NOTES_FILE="$SCRIPT_DIR/../target/generated-site/antora/modules/ROOT/pages/_release-notes/$PROJECT_VERSION.adoc"
[ -f "$RELEASE_NOTES_FILE" ] || {
stderr "Couldn't find release notes file: $RELEASE_NOTES_FILE"
exit 1
Expand All @@ -69,11 +69,11 @@ case $1 in
vote)
cat <<EOF
To: [email protected]
Title: [VOTE] Release $PROJECT_NAME $PROJECT_VERSION
Title: [VOTE] Release $PROJECT_NAME \`$PROJECT_VERSION\`
This is a vote to release the $PROJECT_NAME $PROJECT_VERSION.
This is a vote to release the $PROJECT_NAME \`$PROJECT_VERSION\`.
Website: $PROJECT_STAGING_SITE
Website: $PROJECT_STAGING_SITE-$PROJECT_VERSION
GitHub: $PROJECT_REPO
Commit: $COMMIT_ID
Distribution: $PROJECT_DIST_DIR
Expand All @@ -91,14 +91,14 @@ everyone to test the release, but only the Logging Services PMC
votes are officially counted. At least 3 +1 votes and more
positive than negative votes are required.
=== Review kit
== Review kit
The minimum set of steps needed to review the uploaded distribution
files in the Subversion repository can be summarized as follows:
$(dump_review_kit)
=== Release notes
== Release notes
$(dump_release_notes)
EOF
Expand All @@ -107,18 +107,19 @@ EOF
announce)
cat <<EOF
To: [email protected], [email protected]
Title: [ANNOUNCE] $PROJECT_NAME $PROJECT_VERSION released
Title: [ANNOUNCE] $PROJECT_NAME \`$PROJECT_VERSION\` released
${PROJECT_NAME} team is pleased to announce the $PROJECT_VERSION
${PROJECT_NAME} team is pleased to announce the \`$PROJECT_VERSION\`
release. This project provides tooling internally used by the
Apache Log4j project. For further information (support, download,
etc.) see the project website[1].
[1] $PROJECT_SITE
=== Release Notes
== Release Notes
$(dump_release_notes)
EOF
dump_release_notes
;;

*) fail_for_invalid_args
Expand Down

0 comments on commit fa23196

Please sign in to comment.