From 4b12a0e1b534f107f5a4237a6d1e66f304d41b33 Mon Sep 17 00:00:00 2001 From: Michelle Tran Date: Wed, 2 Oct 2024 14:33:58 -0400 Subject: [PATCH] Ensure that we run offline test analytics on PRs The ref can also reference a branch when it's merged. Ensure that we're only running this for a PR. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be24dc08..3119712a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -162,6 +162,6 @@ jobs: path: "test_results" merge-multiple: true - name: Dogfooding codecov-cli - if: ${{ !cancelled() && github.ref }} + if: ${{ !cancelled() && github.ref && contains(github.ref, 'pull') }} run: | codecovcli process-test-results --provider-token ${{ secrets.GITHUB_TOKEN }} --dir test_results