summaryrefslogtreecommitdiff
path: root/scripts/discord-notify.sh
diff options
context:
space:
mode:
authornippy <nippy@tuta.io>2026-08-13 21:03:47 +0200
committernippy <nippy@tuta.io>2026-08-13 21:03:47 +0200
commite2370e83bd5dae49f89ce849f8051e2a4e8f0598 (patch)
tree319204219cf889c4aae2394156890d398840b77a /scripts/discord-notify.sh
parent30cffc35e00f9823ddc3643c2dac636c5bfc4125 (diff)
downloadRaveOS-build-iso-e2370e83bd5dae49f89ce849f8051e2a4e8f0598.tar.gz
RaveOS-build-iso-e2370e83bd5dae49f89ce849f8051e2a4e8f0598.zip
new iso
Diffstat (limited to 'scripts/discord-notify.sh')
-rwxr-xr-xscripts/discord-notify.sh30
1 files changed, 12 insertions, 18 deletions
diff --git a/scripts/discord-notify.sh b/scripts/discord-notify.sh
index 6b732f7..df5d60a 100755
--- a/scripts/discord-notify.sh
+++ b/scripts/discord-notify.sh
@@ -11,24 +11,18 @@ if [ -z "${WEBHOOK}" ]; then
exit 0
fi
-JSON=$(TAG="${TAG}" ISO_NAME="${ISO_NAME}" ISO_SHA256="${ISO_SHA256}" python3 -c "
-import json, os
-tag = os.environ.get('TAG', 'unknown')
-name = os.environ.get('ISO_NAME', 'unknown')
-sha = os.environ.get('ISO_SHA256', 'n/a')
-msg = {
- 'content': '\n'.join([
- '@everyone',
- '> **RaveOS · Új ISO elérhető!**',
- '> ',
- f'> Verzió: **{tag}**',
- f'> Fájl: `{name}`',
- '> Letöltés: https://links.rp1.hu/raveos-download',
- f'> SHA256: `{sha}`',
- ]),
- 'allowed_mentions': {'parse': ['everyone']},
-}
-print(json.dumps(msg, ensure_ascii=False))
+CONTENT="@everyone
+> **RaveOS · Uj ISO elerheto!**
+>
+> Verzio: **${TAG}**
+> Fajl: \`${ISO_NAME}\`
+> Letoltes: https://links.rp1.hu/raveos-download
+> SHA256: \`${ISO_SHA256}\`"
+
+JSON=$(python3 -c "
+import json
+content = '''${CONTENT}'''
+print(json.dumps({'content': content, 'allowed_mentions': {'parse': ['everyone']}}, ensure_ascii=False))
")
curl -s \