token wurde nicht gesetzt.

This commit is contained in:
2026-03-26 20:29:09 +01:00
parent fdcb8b3423
commit b8d412afb8

View File

@@ -126,11 +126,17 @@ jobs:
SERVER_URL="${{ gitea.server_url }}"
REPO="${{ gitea.repository }}"
TITLE="✅ Synapse aktualisiert"
MESSAGE="Neues Docker-Image '${VERSIONED_TAG}' erfolgreich gebaut und in die Registry ${REGISTRY_HOST}/${OWNER}/-/packages/container/${IMAGE} gepusht. -- Weitere Infos hier: ${SERVER_URL}/${REPO}"
MESSAGE="gitea_actions:
Neues Docker-Image '${VERSIONED_TAG}' erfolgreich gebaut und in die Registry ${REGISTRY_HOST}/${OWNER}/-/packages/container/${IMAGE} gepusht. -- Weitere Infos hier: ${SERVER_URL}/${REPO}"
# Öffentlicher Topic (kein Auth) optional
# Öffentlicher Topic optional mit Auth (falls ntfy Auth erfordert)
if [ -n "$NTFY_PUBLIC" ]; then
AUTH_HEADER=""
if [ -n "$NTFY_TOKEN" ]; then
AUTH_HEADER="-H \"Authorization: Bearer ${NTFY_TOKEN}\""
fi
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" -X POST "$NTFY_PUBLIC" \
${AUTH_HEADER:+-H "Authorization: Bearer ${NTFY_TOKEN}"} \
-H "Title: ${TITLE}" \
-H "Priority: 4" \
-d "$MESSAGE")