mirror of
https://gitlab.anthaathi.net/omkar/mattermost-patched-enterprise.git
synced 2026-10-06 13:44:01 +00:00
Fix notification step: use printf for newlines
This commit is contained in:
@@ -123,11 +123,11 @@ jobs:
|
|||||||
SUCCEEDED="${{ steps.build.outputs.succeeded }}"
|
SUCCEEDED="${{ steps.build.outputs.succeeded }}"
|
||||||
|
|
||||||
TITLE="Mattermost patcher: pattern not found"
|
TITLE="Mattermost patcher: pattern not found"
|
||||||
MESSAGE="Failed to patch: ${FAILED}"
|
MESSAGE=$(printf "Failed to patch: %s" "$FAILED")
|
||||||
if [ -n "$SUCCEEDED" ]; then
|
if [ -n "$SUCCEEDED" ]; then
|
||||||
MESSAGE="${MESSAGE}"$'\n'"$'\n'"Successfully tagged: ${SUCCEEDED}"
|
MESSAGE=$(printf "%s\n\nSuccessfully tagged: %s" "$MESSAGE" "$SUCCEEDED")
|
||||||
fi
|
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" \
|
curl -sf -X POST "https://api.pushover.net/1/messages.json" \
|
||||||
-d "token=${PUSHOVER_TOKEN}" \
|
-d "token=${PUSHOVER_TOKEN}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user