diff --git a/.circleci/template.yml b/.circleci/template.yml index 9bc226581a8..7c5729cfb6f 100644 --- a/.circleci/template.yml +++ b/.circleci/template.yml @@ -304,11 +304,15 @@ commands: if [ -n "${AWS_SECRET_ACCESS_KEY}" ]; then tools/circleci-upload-to-s3.sh; fi report_failed_test_cases_to_ga4: steps: - - run: - name: Report failed test cases - when: always - command: | - tools/gh-report-failing-testcases-to-ga4.sh + - when: + condition: + equal: [ master, << pipeline.git.branch >> ] + steps: + - run: + name: Report failed test cases to GA4 + when: always + command: | + tools/gh-report-failing-testcases-to-ga4.sh publish_github_comment: steps: - run: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 384a9fe4226..ae6d7d84362 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,7 +84,7 @@ jobs: if: ${{ failure() }} run: tools/gh-upload-to-s3.sh big_tests/ct_report - name: upload big_tests results to GA4 - if: ${{ always() }} + if: github.ref_name == 'master' run: tools/gh-report-failing-testcases-to-ga4.sh dynamic_domains_big_tests: @@ -112,7 +112,7 @@ jobs: if: ${{ failure() }} run: tools/gh-upload-to-s3.sh big_tests/ct_report - name: upload big_tests results to GA4 - if: ${{ always() }} + if: github.ref_name == 'master' run: tools/gh-report-failing-testcases-to-ga4.sh coveralls_webhook: