Try a different Discord notifier
This commit is contained in:
26
.github/workflows/main.yml
vendored
26
.github/workflows/main.yml
vendored
@@ -519,29 +519,13 @@ jobs:
|
|||||||
lime build SimpleImage windows -release -verbose -nocolor
|
lime build SimpleImage windows -release -verbose -nocolor
|
||||||
lime build SimpleAudio windows -release -verbose -nocolor
|
lime build SimpleAudio windows -release -verbose -nocolor
|
||||||
|
|
||||||
notify-discord:
|
notify:
|
||||||
runs-on: ubuntu-16.04
|
runs-on: ubuntu-16.04
|
||||||
needs: [android, flash, hashlink, html5, ios, linux, macos, neko, windows]
|
needs: [android, flash, hashlink, html5, ios, linux, macos, neko, windows]
|
||||||
if: (github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name)
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
- name: Notify Discord
|
- name: Notify Discord
|
||||||
uses: appleboy/discord-action@master
|
uses: nobrayner/discord-webhook@v1
|
||||||
with:
|
with:
|
||||||
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
github-token: ${{ secrets.github_token }}
|
||||||
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
color: "#00C07F"
|
|
||||||
message: "https://github.com/haxelime/lime/actions/runs/${{ github.run_id }}\nCI build succeeded"
|
|
||||||
|
|
||||||
notify-discord-failure:
|
|
||||||
runs-on: ubuntu-16.04
|
|
||||||
needs: [notify-discord]
|
|
||||||
if: always() && (github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name)
|
|
||||||
steps:
|
|
||||||
- name: Notify Discord (failure)
|
|
||||||
uses: appleboy/discord-action@master
|
|
||||||
if: needs.notify-discord.result != 'success'
|
|
||||||
with:
|
|
||||||
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
|
|
||||||
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
|
|
||||||
color: "#FF6562"
|
|
||||||
message: "https://github.com/haxelime/lime/actions/runs/${{ github.run_id }}\nCI build failed"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user