mirror of
https://github.com/RDCN-Community-Developers/rdkt.git
synced 2026-09-04 17:25:33 +08:00
Fixed notification.
This commit is contained in:
@@ -54,3 +54,9 @@ jobs:
|
||||
uses: gradle/gradle-build-action@ce999babab2de1c4b649dc15f0ee67e6246c994f
|
||||
with:
|
||||
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 }}
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
on: push
|
||||
name: Notify Discord
|
||||
on: [ push, pull_request, release ]
|
||||
|
||||
jobs:
|
||||
discord-notifier:
|
||||
notify:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Discord Notification
|
||||
uses: tenzin1308/discord-notification@v1.0.0
|
||||
- name: Send Discord notification
|
||||
uses: nitecon/discord-action@v2
|
||||
with:
|
||||
discord-webhook-url: ${{ secrets.DISCORD_WEBHOOKS_URL }}
|
||||
webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
Reference in New Issue
Block a user