Skip to content

Commit 2e2292b

Browse files
committed
adding a notification for failed testnet nightly tests
1 parent 9571e8c commit 2e2292b

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/testnet.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,18 @@ jobs:
134134
- name: Profile deployment on testnet
135135
if: ${{ !inputs.skip_deployment }}
136136
run: |
137-
script -e -c "yarn profile::testnet"
137+
script -e -c "yarn profile::testnet"
138+
139+
- name: Send Slack notification on failure
140+
if: failure()
141+
uses: slackapi/slack-github-action@v2.1.1
142+
with:
143+
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
144+
webhook-type: incoming-webhook
145+
payload: |
146+
text: ":x: Testnet Tests Failed"
147+
blocks:
148+
- type: "section"
149+
text:
150+
type: "mrkdwn"
151+
text: "*Testnet Tests Failed* :x:\n*Repository:* ${{ github.repository }}\n*Run ID:* `${{ github.run_id }}`\n*Triggered:* ${{ github.event_name }}\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|:mag: View Logs and Details>"

0 commit comments

Comments
 (0)