From ea1c44d3a09efbeb07311b5ce06a2ac5bcfc0f1e Mon Sep 17 00:00:00 2001 From: Denys Gonchar Date: Tue, 11 Jul 2023 12:31:51 +0200 Subject: [PATCH] report failed test cases to GA4 only for master branch --- .circleci/template.yml | 14 +++++++++----- .github/workflows/ci.yml | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) 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: