Skip to content

Commit 0b69756

Browse files
authored
Merge pull request #6 from unisoncomputing/fix-slack-alerts
Fix Slack notifications for failures
2 parents eb63250 + fe9b325 commit 0b69756

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

.github/workflows/cloud-client-tests.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,16 @@ jobs:
5757
if: ${{ failure() }}
5858
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
5959
with:
60-
channel-id: 'C02DSE7K3EF'
60+
method: chat.postMessage
61+
token: ${{ secrets.SLACK_BOT_TOKEN }}
6162
payload: |
62-
{
63-
"text": "Cloud client integration tests production ${{ job.status }} (version: ${{ matrix.cloud-client-version }}). ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}",
64-
"blocks": [
65-
{
66-
"type": "section",
67-
"text": {
68-
"type": "mrkdwn",
69-
"text": "Cloud client integration tests production ${{ job.status }} (version: ${{ matrix.cloud-client-version }}). <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Details>"
70-
}
71-
}
72-
]
73-
}
74-
env:
75-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
63+
channel: "C02DSE7K3EF"
64+
text: "Cloud client integration tests production ${{ job.status }} (version: ${{ matrix.cloud-client-version }}). ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
65+
blocks:
66+
- type: "section"
67+
text:
68+
type: "mrkdwn"
69+
text: "Cloud client integration tests production ${{ job.status }} (version: ${{ matrix.cloud-client-version }}). <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Details>"
7670
- name: Cache ucm release
7771
if: ${{ !cancelled() && steps.restore-cached-ucm.outputs.cache-hit != 'true' && startsWith(matrix.ucm-release-version, 'release') }}
7872
id: save-ucm-to-cache

0 commit comments

Comments
 (0)