From 206ab31ee8c63cdbac279f6178cc9650a2bb66db Mon Sep 17 00:00:00 2001 From: Elizabeth Perl Date: Tue, 21 Jul 2026 09:25:26 -0400 Subject: [PATCH 1/2] Add conditional check for calc-coverage job on forks --- .github/workflows/calc-coverage.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/calc-coverage.yml b/.github/workflows/calc-coverage.yml index 3a46828..f7ae529 100644 --- a/.github/workflows/calc-coverage.yml +++ b/.github/workflows/calc-coverage.yml @@ -20,6 +20,7 @@ permissions: {} jobs: calc-coverage: + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} From e54619dc1177be7cd94b34c7a6d5ad7fe4ce28ff Mon Sep 17 00:00:00 2001 From: Elizabeth Perl Date: Tue, 21 Jul 2026 10:26:46 -0400 Subject: [PATCH 2/2] Fix condition for Codecov action in workflow to only not run the codecov upload --- .github/workflows/calc-coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/calc-coverage.yml b/.github/workflows/calc-coverage.yml index f7ae529..e985f25 100644 --- a/.github/workflows/calc-coverage.yml +++ b/.github/workflows/calc-coverage.yml @@ -20,7 +20,6 @@ permissions: {} jobs: calc-coverage: - if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} @@ -47,6 +46,7 @@ jobs: shell: Rscript {0} - uses: codecov/codecov-action@v6 + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository with: fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }} files: ./cobertura.xml