From c9b58e154fe58a24fd8ef23ba522c81d67d54ba1 Mon Sep 17 00:00:00 2001 From: rtm516 Date: Sat, 25 Feb 2023 02:36:51 +0000 Subject: [PATCH] Allow build notifcation on success or failure --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 160191d46..553e2c5b2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,8 +46,8 @@ jobs: ssh -o StrictHostKeyChecking=no -i id_ecdsa $DOWNLOADS_USERNAME@$DOWNLOADS_SERVER_IP ./handleBuild.sh geyser $version $GITHUB_RUN_ID $GITHUB_SHA - name: Notify Discord - if: ${{ github.repository == 'GeyserMC/Geyser' }} + if: ${{ (success() || failure()) && github.repository == 'GeyserMC/Geyser' }} uses: Tim203/actions-git-discord-webhook@main with: webhook_url: ${{ secrets.DISCORD_WEBHOOK }} - status: ${{ job.status }} \ No newline at end of file + status: ${{ job.status }}