File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040 --arg run_url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
4141 --arg error "$ERROR_MESSAGE" \
4242 '{
43- text: "❌ ADJ Validator Failed",
44- blocks: [
45- {
46- type: "section",
47- text: {
48- type: "mrkdwn",
49- text: "❌ *ADJ Validator Failed*"
50- }
51- },
52- {
53- type: "section",
54- fields: [
55- { type: "mrkdwn", text: "*Repository:*\n\($repo)" },
56- { type: "mrkdwn", text: "*Branch:*\n\($branch)" },
57- { type: "mrkdwn", text: "*Actor:*\n\($actor)" }
58- ]
59- },
60- {
61- type: "section",
62- text: {
63- type: "mrkdwn",
64- text: "*Last 40 lines of error:*\n``` \($error) ```"
65- }
66- },
67- {
68- type: "actions",
69- elements: [
70- {
71- type: "button",
72- text: {
73- type: "plain_text",
74- text: "View Workflow Run"
75- },
76- url: $run_url
77- }
78- ]
79- }
80- ]
43+ text: "❌ ADJ Validator Failed\n\nRepository: \($repo)\nBranch: \($branch)\nActor: \($actor)\n\nLast 40 lines of error:\n\($error)\n\nWorkflow run:\n\($run_url)"
8144 }' | curl -X POST -H "Content-type: application/json" \
8245 --data @- \
8346 $SLACK_WEBHOOK
You can’t perform that action at this time.
0 commit comments