From dc36bed7d3973437d06aaa139f582d8d06a74793 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Tue, 7 Jan 2025 12:40:01 +0800 Subject: [PATCH] DEV: Only check for flaky test report on the `main` branch (#30608) We don't care about flaky tests on the stable branch for now. --- .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 ce75e567dba..9f7696a3d6a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -314,7 +314,7 @@ jobs: - name: Check for flaky tests report id: check-flaky-spec-report - if: github.repository == 'discourse/discourse' && env.DISCOURSE_TURBO_RSPEC_RETRY_AND_LOG_FLAKY_TESTS == '1' + if: github.repository == 'discourse/discourse' && github.ref_name == 'main' && 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