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.
This commit is contained in:
Alan Guo Xiang Tan 2025-01-07 12:40:01 +08:00 committed by GitHub
parent ef8b62ae0a
commit dc36bed7d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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