From d3403b95c2800e1224dca4eaa1130d4509de39a4 Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Wed, 6 Jan 2021 11:15:31 -0800 Subject: [PATCH] Update CI script --- .github/workflows/main.yml | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ed1b52542..fffb00544 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -503,9 +503,9 @@ jobs: haxelib run lime setup -alias -y -nocffi - name: Rebuild Lime - run: | - lime rebuild windows -32 -release -verbose -nocolor - lime rebuild windows -64 -release -verbose -nocolor + run: | + lime rebuild windows -32 -release -verbose -nocolor + lime rebuild windows -64 -release -verbose -nocolor - name: Create Lime samples run: | @@ -541,3 +541,25 @@ jobs: webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }} color: "#FF6562" message: "https://github.com/haxelime/lime/actions/runs/${{ GITHUB_RUN_ID }}\nCI build failed." + + test-notify-discord: + if: always() + steps: + + - name: Notify Discord (success) + uses: appleboy/discord-action@master + if: github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name + with: + webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }} + webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }} + color: "#00C07F" + message: "CI build succeeded." + + - name: Notify Discord (failure) + uses: appleboy/discord-action@master + if: failure() && (github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name) + 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."