Skip to content

Commit 4043a84

Browse files
authored
Merge pull request #101 from forcedotcom/ew/swc
Sync files
2 parents 63309f9 + c1ba581 commit 4043a84

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/failureNotifications.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,24 @@ jobs:
2121
SLACK_WEBHOOK_URL: ${{ secrets.CLI_ALERTS_SLACK_WEBHOOK }}
2222
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
2323
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
2426
payload: |
2527
{
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 }}",
2729
"blocks": [
2830
{
2931
"type": "header",
3032
"text": {
3133
"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:"
3335
}
3436
},
3537
{
3638
"type": "section",
3739
"text": {
3840
"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 }}"
4042
}
4143
}
4244
]

.github/workflows/test.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@ on:
55
workflow_dispatch:
66

77
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

0 commit comments

Comments
 (0)