diff --git a/.github/workflows/snapshot-both-pc-android.yml b/.github/workflows/snapshot-both-pc-android.yml index 71ea51ca1fa..f841dec8739 100644 --- a/.github/workflows/snapshot-both-pc-android.yml +++ b/.github/workflows/snapshot-both-pc-android.yml @@ -123,3 +123,10 @@ jobs: artifacts: izpack/* allowUpdates: true removeArtifacts: true + + - 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\": \"🔴 Snapshot Build Failed in branch: \`${{ github.ref_name }}\` by \`${{ github.actor }}\`.\nCheck logs: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}\"}" \ + ${{ secrets.DISCORD_AUTOMATION_WEBHOOK }} diff --git a/.github/workflows/snapshots-android.yml b/.github/workflows/snapshots-android.yml index 6e19c623045..1f4b1d93aa9 100644 --- a/.github/workflows/snapshots-android.yml +++ b/.github/workflows/snapshots-android.yml @@ -13,10 +13,6 @@ on: # description: 'Upload the completed Android package' # required: false # default: true - schedule: - # * is a special character in YAML so you have to quote this string - - cron: '00 19 * * *' - jobs: build: diff --git a/.github/workflows/snapshots-pc.yml b/.github/workflows/snapshots-pc.yml index c65f1f6fa93..66f54315f00 100644 --- a/.github/workflows/snapshots-pc.yml +++ b/.github/workflows/snapshots-pc.yml @@ -8,9 +8,6 @@ on: description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' required: false default: false - schedule: - # * is a special character in YAML so you have to quote this string - - cron: '30 18 * * *' jobs: build: