Skip to content

Commit 1b3bf6f

Browse files
committed
[feature] Automatically ping for changelogs
Signed-off-by: Dominika <sokolov.dominika@gmail.com>
1 parent dd673b0 commit 1b3bf6f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

scripts/runAutomatedRelease.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,14 @@ JAR_NAME="$("$_d"/scripts/buildNamed.sh)" || exit $?
5050
REPO="$KAMI_REPO_NIGHTLY"
5151
[ "$1" == "major" ] && REPO="$KAMI_REPO_MAJOR"
5252

53+
# Send ping
54+
if [ -n "$KAMI_UPDATES_ROLE_ID" ]; then
55+
curl -X POST \
56+
-H "Content-Type: application/json" \
57+
-d '{"username": "", "content": "<@&'"$KAMI_UPDATES_ROLE_ID"'>"}' \
58+
"$KAMI_WEBHOOK"
59+
fi
60+
61+
# Send changelog embed
5362
curl -H "Content-Type: application/json" -X POST \
5463
-d '{"embeds": [{"title": "Download v'"$VERSION"'","color": 10195199,"description": "[**DOWNLOAD**](https://github.com/'"$KAMI_OWNER"'/'"$REPO"'/releases/download/'"$VERSION"'/'"$JAR_NAME"')\n\n**Changelog:** \n'"$CHANGELOG"'\n\nDiff: ['"$OLD_COMMIT"'...'"$HEAD"'](https://github.com/'"$KAMI_OWNER"'/'"$REPO"'/compare/'"$OLD_COMMIT"'...'"$HEAD"') "}]}' "$KAMI_WEBHOOK"

0 commit comments

Comments
 (0)