From 78ad99ae6e45186abac4b4b19301cab393497c1f Mon Sep 17 00:00:00 2001 From: Chris H Date: Sun, 24 Nov 2024 11:01:51 -0500 Subject: [PATCH] Update snapshot automation (#6624) * Update snapshots-pc.yml * Update snapshots-android.yml * Update snapshots-pc.yml --- .github/workflows/snapshots-android.yml | 7 +++++++ .github/workflows/snapshots-pc.yml | 7 +++++++ 2 files changed, 14 insertions(+) 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 }}