diff options
| author | nippy <nippy@tuta.io> | 2026-08-13 21:03:47 +0200 |
|---|---|---|
| committer | nippy <nippy@tuta.io> | 2026-08-13 21:03:47 +0200 |
| commit | e2370e83bd5dae49f89ce849f8051e2a4e8f0598 (patch) | |
| tree | 319204219cf889c4aae2394156890d398840b77a /scripts | |
| parent | 30cffc35e00f9823ddc3643c2dac636c5bfc4125 (diff) | |
| download | RaveOS-build-iso-e2370e83bd5dae49f89ce849f8051e2a4e8f0598.tar.gz RaveOS-build-iso-e2370e83bd5dae49f89ce849f8051e2a4e8f0598.zip | |
new iso
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/discord-notify.sh | 30 |
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 \ |