mirror of
https://github.com/RDCN-Community-Developers/rdkt.git
synced 2026-09-05 01:35:31 +08:00
Fixed notification.
This commit is contained in:
@@ -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 }}
|
||||||
|
|||||||
@@ -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 }}
|
||||||
Reference in New Issue
Block a user