Skip to content

Commit fefa6fa

Browse files
committed
format slack message
1 parent 3426c08 commit fefa6fa

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/linter-failure-notifier.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,15 @@ jobs:
4343
target_line="• Trigger: ${TRIGGER_EVENT}"
4444
fi
4545
46-
message=":warning: Linter workflow failed in ${REPO}.\n• Workflow: ${RUN_NAME}\n${target_line}\n• Branch: ${BRANCH}\n• Commit: ${short_sha}\n• Run: ${RUN_URL}"
46+
message=$(cat <<EOF
47+
:warning: Linter workflow failed in ${REPO}.
48+
• Workflow: ${RUN_NAME}
49+
${target_line}
50+
• Branch: ${BRANCH}
51+
• Commit: ${short_sha}
52+
• Run: ${RUN_URL}
53+
EOF
54+
)
4755

4856
curl --fail --silent --show-error \
4957
-X POST \

0 commit comments

Comments
 (0)