Merge pull request 'actions2' (#7) from actions2 into main
Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user