diff --git a/.github/workflows/flaky.yaml b/.github/workflows/flaky.yaml index 0e5bae7569..7b2ecccc6f 100644 --- a/.github/workflows/flaky.yaml +++ b/.github/workflows/flaky.yaml @@ -91,7 +91,7 @@ jobs: echo "$EOF" >> $GITHUB_OUTPUT - name: Notify discord on failure uses: n0-computer/discord-webhook-notify@v1 - if: ${{ env.TESTS_RESULT != 'cancelled' }} + if: ${{ env.TESTS_RESULT == 'failure' || env.TESTS_RESULT == 'success' }} with: severity: ${{ env.TESTS_RESULT == 'failure' && 'warn' || 'info' }} details: ${{ env.TESTS_RESULT == 'failure' && steps.make_summary.outputs.summary || 'No flaky failures!' }}