From 4377649077c6f4279a01534ab9e69e2c10719611 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Fri, 13 Sep 2024 14:59:49 +0800 Subject: [PATCH] DEV: Only run `check-flaky-spec-report when enabled in tests workflow` (#28903) --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 10e4b9a2425..80c4851c960 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -311,7 +311,7 @@ jobs: - name: Check for flaky tests report id: check-flaky-spec-report - if: always() && github.repository == 'discourse/discourse' + if: always() && github.repository == 'discourse/discourse' && ${{ env.DISCOURSE_TURBO_RSPEC_RETRY_AND_LOG_FLAKY_TESTS == '1' }} run: | if [ -f tmp/turbo_rspec_flaky_tests.json ]; then echo "exists=true" >> $GITHUB_OUTPUT