From 2e2292b7e1348d85014817313214e3673454fda2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Pedro=20Sousa?= Date: Fri, 3 Oct 2025 11:39:49 +0100 Subject: [PATCH] adding a notification for failed testnet nightly tests --- .github/workflows/testnet.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testnet.yaml b/.github/workflows/testnet.yaml index a7a3777..91ae381 100644 --- a/.github/workflows/testnet.yaml +++ b/.github/workflows/testnet.yaml @@ -134,4 +134,18 @@ jobs: - name: Profile deployment on testnet if: ${{ !inputs.skip_deployment }} run: | - script -e -c "yarn profile::testnet" \ No newline at end of file + script -e -c "yarn profile::testnet" + + - name: Send Slack notification on failure + if: failure() + uses: slackapi/slack-github-action@v2.1.1 + with: + webhook: ${{ secrets.SLACK_WEBHOOK_URL }} + webhook-type: incoming-webhook + payload: | + text: ":x: Testnet Tests Failed" + blocks: + - type: "section" + text: + type: "mrkdwn" + 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>" \ No newline at end of file