actions2 #7
@@ -126,11 +126,17 @@ jobs:
|
|||||||
SERVER_URL="${{ gitea.server_url }}"
|
SERVER_URL="${{ gitea.server_url }}"
|
||||||
REPO="${{ gitea.repository }}"
|
REPO="${{ gitea.repository }}"
|
||||||
TITLE="✅ Synapse aktualisiert"
|
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
|
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" \
|
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 "Title: ${TITLE}" \
|
||||||
-H "Priority: 4" \
|
-H "Priority: 4" \
|
||||||
-d "$MESSAGE")
|
-d "$MESSAGE")
|
||||||
|
|||||||
Reference in New Issue
Block a user