From 8714f8e6bc6850a169745814c3ff80d12b970051 Mon Sep 17 00:00:00 2001 From: Gunter Labes Date: Thu, 10 Aug 2023 23:27:17 +0200 Subject: [PATCH] Run whole notification job only on push and failure --- .github/workflows/ci-main.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index 21e76ef7bdd..9df157e7058 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -315,13 +315,11 @@ jobs: notification: runs-on: ubuntu-latest needs: [checks, ubuntu, steam-runtime, mingw, flatpak, translations, macos-intel, windows] - if: always() + if: failure() && github.event_name == 'push' steps: - - uses: technote-space/workflow-conclusion-action@v3 - name: Discord Notification uses: rjstone/discord-webhook-notify@v1 - if: env.WORKFLOW_CONCLUSION == 'failure' && github.event_name == 'push' with: severity: error webhookUrl: ${{ secrets.DISCORD_CI_WEBHOOK }} @@ -331,7 +329,6 @@ jobs: commit url: ${{ github.event.head_commit.url }} - name: IRC Notification uses: rectalogic/notify-irc@v1 - if: env.WORKFLOW_CONCLUSION == 'failure' && github.event_name == 'push' env: COLOR: ${{ fromJSON('"\u0003"') }} BLUE: 02