feat(ci): add hive discord alert on failure (#9482)

This commit is contained in:
joshieDo
2024-07-15 13:13:22 +02:00
committed by GitHub
parent 9daa23c981
commit 71182cb694
3 changed files with 15 additions and 4 deletions

View File

@ -22,8 +22,8 @@ while [ $attempt -lt $max_attempts ]; do
# Check if no tests were run. sed removes ansi colors
if check_log | grep -q "suites=0"; then
echo "no tests were run, retrying in 5 seconds"
sleep 5
echo "no tests were run, retrying in 10 seconds"
sleep 10
attempt=$((attempt + 1))
continue
fi

View File

@ -231,3 +231,14 @@ jobs:
if: ${{ failure() }}
run: |
cat hivetests/workspace/logs/reth/client-*.log
notify-on-error:
needs: test
if: failure()
runs-on:
group: Reth
steps:
- name: Discord Webhook Action
uses: tsickert/discord-webhook@v5.3.0
with:
webhook-url: ${{ secrets.RETH_ALERTS_WEBHOOK }}
content: "Failed run: https://github.com/paradigmxyz/reth/actions/runs/${{ github.run_id }}"