Fix notification step: use printf for newlines

This commit is contained in:
WasserEsser
2026-06-22 20:24:37 +02:00
parent 87fed98cd2
commit 90de6b889f
+3 -3
View File
@@ -123,11 +123,11 @@ jobs:
SUCCEEDED="${{ steps.build.outputs.succeeded }}"
TITLE="Mattermost patcher: pattern not found"
MESSAGE="Failed to patch: ${FAILED}"
MESSAGE=$(printf "Failed to patch: %s" "$FAILED")
if [ -n "$SUCCEEDED" ]; then
MESSAGE="${MESSAGE}"$'\n'"$'\n'"Successfully tagged: ${SUCCEEDED}"
MESSAGE=$(printf "%s\n\nSuccessfully tagged: %s" "$MESSAGE" "$SUCCEEDED")
fi
MESSAGE="${MESSAGE}"$'\n'"$'\n'"Action needed: update patch.sh pattern for the failing version(s)."$'\n'"Repo: ${{ github.repository }}"
MESSAGE=$(printf "%s\n\nAction needed: update patch.sh pattern for the failing version(s).\nRepo: %s" "$MESSAGE" "${{ github.repository }}")
curl -sf -X POST "https://api.pushover.net/1/messages.json" \
-d "token=${PUSHOVER_TOKEN}" \