From 7702a3fe29a37817b922c64dfe6b66812c28b9ff Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Wed, 14 Apr 2021 15:17:47 +0300 Subject: [PATCH] Meta: Increase discord notification's check interval to 100 seconds Since our tests usually take at least 10 minutes theres no point in checking every 10 seconds, and github was starting to complain about the very high API usage. --- .github/workflows/discord.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/discord.yml b/.github/workflows/discord.yml index ac57f2ba97..64ea46d7a0 100644 --- a/.github/workflows/discord.yml +++ b/.github/workflows/discord.yml @@ -11,11 +11,13 @@ jobs: - name: Wait for tests to finish uses: IdanHo/action-wait-for-check@890bf0671eeeac09faf19f57deb4397eeccc59aa id: wait-for-tests + if: ${{ (github.event['pull_request'] && github.event['action'] == 'opened' && !(github.event['pull_request'] == 'draft')) || github.event['commits'] }} with: token: ${{ secrets.GITHUB_TOKEN }} excludedCheckName: "notify_discord" ref: ${{ github.event.pull_request.head.sha || github.sha }} timeoutSeconds: 3600 + intervalSeconds: 100 - name: Discord action notification env: