Skip to content

Commit 022bb17

Browse files
Update adj-tester.yaml
1 parent 501f390 commit 022bb17

1 file changed

Lines changed: 1 addition & 38 deletions

File tree

.github/workflows/adj-tester.yaml

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -40,44 +40,7 @@ jobs:
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

0 commit comments

Comments
 (0)