Skip to content

Commit 18275fd

Browse files
committed
Fix generate-email.sh
1 parent 211c709 commit 18275fd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/generate-email.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ fail_for_invalid_args() {
3838
# Constants
3939
PROJECT_NAME="Apache Log4j"
4040
PROJECT_ID="log4j"
41+
PROJECT_VERSION="$2"
4142
PROJECT_SITE="https://logging.apache.org/$PROJECT_ID"
4243
PROJECT_STAGING_SITE="${PROJECT_SITE/apache.org/staged.apache.org}"
4344
PROJECT_REPO="https://github.com/apache/logging-log4j2"
44-
PROJECT_VERSION="$2"
4545
COMMIT_ID="$3"
4646
PROJECT_DIST_URL="https://dist.apache.org/repos/dist/dev/logging/$PROJECT_ID/$PROJECT_VERSION"
4747

@@ -54,8 +54,8 @@ RELEASE_NOTES_FILE="$SCRIPT_DIR/../target/generated-site/antora/modules/ROOT/pag
5454

5555
dump_release_notes() {
5656
awk "f{print} /^Release date::/{f=1}" "$RELEASE_NOTES_FILE" \
57-
| sed -r -e 's|'$PROJECT_REPO'/(issues|pull)/[0-9]+\[([0-9]+)\]|#\2|g
58-
s|https://github.com/([^/]+)/([^/]+)/(pull|issues)/([0-9]+)\[(\1/\2#\4)\]|\5|g'
57+
| sed -r -e 's!'$PROJECT_REPO'/(issues|pull)/[0-9]+\[([0-9]+)\]!#\2!g
58+
s!https://github.com/([^/]+)/([^/]+)/(pull|issues)/([0-9]+)\[(\1/\2#\4)\]!\5!g'
5959
}
6060

6161
case $1 in
@@ -67,13 +67,13 @@ Title: [VOTE] Release $PROJECT_NAME \`$PROJECT_VERSION\`
6767
6868
This is a vote to release the $PROJECT_NAME \`$PROJECT_VERSION\`.
6969
70-
Website: $PROJECT_STAGING_SITE-$PROJECT_VERSION
70+
Website: $PROJECT_STAGING_SITE/$PROJECT_VERSION/index.html
7171
GitHub: $PROJECT_REPO
7272
Commit: $COMMIT_ID
7373
Distribution: $PROJECT_DIST_URL
7474
Nexus: https://repository.apache.org/content/repositories/orgapachelogging-<FIXME>
7575
Signing key: 0x077e8893a6dcc33dd4a4d5b256e73ba9a0b592d0
76-
Review kit: https://s.apache.org/logging-parent-release-review-kit
76+
Review kit: https://logging.apache.org/logging-parent/release-review-instructions.html
7777
7878
Please download, test, and cast your votes on this mailing list.
7979
@@ -103,7 +103,7 @@ and components to assist the deployment for various use cases.
103103
For further information (support, download, etc.) see the project
104104
website[1].
105105
106-
[1] $PROJECT_SITE
106+
[1] $PROJECT_SITE/2.x/index.html
107107
108108
== Release Notes
109109
EOF

0 commit comments

Comments
 (0)