From 90de6b889f6442219335cbe224d261c9856535f9 Mon Sep 17 00:00:00 2001 From: WasserEsser Date: Mon, 22 Jun 2026 20:24:37 +0200 Subject: [PATCH] Fix notification step: use printf for newlines --- .github/workflows/auto-tag.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index 5ec3548..8402638 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -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}" \