From 716ebced0ad82c06ef4505270c7fdcd5dad74b9d Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Wed, 6 Jan 2021 13:17:00 -0800 Subject: [PATCH] Try a different Discord notifier --- .github/workflows/main.yml | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fe20f7c18..391a388d7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -519,29 +519,13 @@ jobs: lime build SimpleImage windows -release -verbose -nocolor lime build SimpleAudio windows -release -verbose -nocolor - notify-discord: + notify: runs-on: ubuntu-16.04 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: - name: Notify Discord - uses: appleboy/discord-action@master + uses: nobrayner/discord-webhook@v1 with: - webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }} - webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }} - 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" + github-token: ${{ secrets.github_token }} + discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}