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