We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ff24e1 commit d16b3a1Copy full SHA for d16b3a1
.github/workflows/publish.yml
@@ -16,6 +16,25 @@ jobs:
16
w3up-proof: ${{ secrets.W3UP_PROOF }}
17
w3name-private-key: ${{ secrets.W3NAME_PRIVATE_KEY }}
18
w3name-revision: ${{ secrets.W3NAME_REVISION }}
19
+ - if: failure()
20
+ uses: slackapi/[email protected]
21
+ with:
22
+ method: chat.postMessage
23
+ token: ${{ secrets.SLACK_BOT_TOKEN }}
24
+ payload: |
25
+ {
26
+ "channel": "alerts",
27
+ "text": "Publishing `${{ github.event.repository.name }}` failed",
28
+ "blocks": [
29
30
+ "type": "section",
31
+ "text": {
32
+ "type": "mrkdwn",
33
+ "text": ":warning: *<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Publishing `${{ github.event.repository.name }}` failed>*"
34
+ }
35
36
+ ]
37
38
- uses: slackapi/[email protected]
39
with:
40
channel-id: spark-public
0 commit comments