File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -21,22 +21,24 @@ jobs:
21
21
SLACK_WEBHOOK_URL : ${{ secrets.CLI_ALERTS_SLACK_WEBHOOK }}
22
22
SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
23
23
with :
24
+ # Payload can be visually tested here: https://app.slack.com/block-kit-builder/T01GST6QY0G#%7B%22blocks%22:%5B%5D%7D
25
+ # Only copy over the "blocks" array to the Block Kit Builder
24
26
payload : |
25
27
{
26
- "text": "${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }}",
28
+ "text": "Workflow \" ${{ github.event.workflow_run.name }}\" failed in ${{ github.event.workflow_run.repository.name }}",
27
29
"blocks": [
28
30
{
29
31
"type": "header",
30
32
"text": {
31
33
"type": "plain_text",
32
- "text": ":bh-alert: ${{ github.event.workflow_run.name }} failed: ${{ github.event.workflow_run.repository.name }} :bh-alert:"
34
+ "text": ":bh-alert: Workflow \" ${{ github.event.workflow_run.name }}\" failed in ${{ github.event.workflow_run.repository.name }} :bh-alert:"
33
35
}
34
36
},
35
37
{
36
38
"type": "section",
37
39
"text": {
38
40
"type": "mrkdwn",
39
- "text": "Repo: ${{ github.event.workflow_run.repository.html_url }}\nWorkflow name: `${{ github.event.workflow_run.name }}`\nJob url: ${{ github.event.workflow_run.html_url }}"
41
+ "text": "* Repo:* ${{ github.event.workflow_run.repository.html_url }}\n*Workflow name:* `${{ github.event.workflow_run.name }}`\n*Job url:* ${{ github.event.workflow_run.html_url }}"
40
42
}
41
43
}
42
44
]
Original file line number Diff line number Diff line change 5
5
workflow_dispatch :
6
6
7
7
jobs :
8
- unit-tests :
9
- uses : salesforcecli/github-workflows/.github/workflows/unitTest.yml@main
8
+ yarn-lockfile-check :
9
+ uses : salesforcecli/github-workflows/.github/workflows/lockFileCheck.yml@main
10
+ linux-unit-tests :
11
+ needs : yarn-lockfile-check
12
+ uses : salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@main
13
+ windows-unit-tests :
14
+ needs : yarn-lockfile-check
15
+ uses : salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main
You can’t perform that action at this time.
0 commit comments