Fixed notification.

This commit is contained in:
2026-03-11 23:12:01 +08:00
parent e2f867a1a1
commit 592f387149
2 changed files with 13 additions and 5 deletions
+6
View File
@@ -54,3 +54,9 @@ jobs:
uses: gradle/gradle-build-action@ce999babab2de1c4b649dc15f0ee67e6246c994f uses: gradle/gradle-build-action@ce999babab2de1c4b649dc15f0ee67e6246c994f
with: with:
arguments: ${{ matrix.target }} arguments: ${{ matrix.target }}
- name: Notify Discord If Failed
if: ${{ cancelled() }}
uses: nitecon/discord-action@v2
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
job-status: ${{ job.status }}
+7 -5
View File
@@ -1,9 +1,11 @@
on: push name: Notify Discord
on: [ push, pull_request, release ]
jobs: jobs:
discord-notifier: notify:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Discord Notification - name: Send Discord notification
uses: tenzin1308/discord-notification@v1.0.0 uses: nitecon/discord-action@v2
with: with:
discord-webhook-url: ${{ secrets.DISCORD_WEBHOOKS_URL }} webhook-url: ${{ secrets.DISCORD_WEBHOOK }}