diff --git a/.github/workflows/snapshots-android.yml b/.github/workflows/snapshots-android.yml index 793f4cddd7f..6e19c623045 100644 --- a/.github/workflows/snapshots-android.yml +++ b/.github/workflows/snapshots-android.yml @@ -109,3 +109,10 @@ jobs: local-dir: upload/ server-dir: downloads/dailysnapshots/ state-name: .ftp-deploy-android-sync-state.json + + - name: Send failure notification to Discord + if: failure() # This step runs only if the job fails + run: | + curl -X POST -H "Content-Type: application/json" \ + -d "{\"content\": \"🔴 Android Snapshot Build Failed in branch: \`${{ github.ref_name }}\` by \`${{ github.actor }}\`.\nCheck logs: ${{ github.run_url }}\"}" \ + ${{ secrets.DISCORD_AUTOMATION_WEBHOOK }} diff --git a/.github/workflows/snapshots-pc.yml b/.github/workflows/snapshots-pc.yml index 0dc50ecd525..c65f1f6fa93 100644 --- a/.github/workflows/snapshots-pc.yml +++ b/.github/workflows/snapshots-pc.yml @@ -89,3 +89,10 @@ jobs: *.pom *.repositories *.xml + + - name: Send failure notification to Discord + if: failure() # This step runs only if the job fails + run: | + curl -X POST -H "Content-Type: application/json" \ + -d "{\"content\": \"🔴 Desktop Snapshot Build Failed in branch: \`${{ github.ref_name }}\` by \`${{ github.actor }}\`.\nCheck logs: ${{ github.run_url }}\"}" \ + ${{ secrets.DISCORD_AUTOMATION_WEBHOOK }}