Skip to content

Commit

Permalink
Merge pull request #132 from HDash/support_codecov_token
Browse files Browse the repository at this point in the history
Add support for CODECOV_TOKEN
  • Loading branch information
bschilder authored Aug 19, 2024
2 parents 9352118 + 1824834 commit 3013968
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ inputs:
(e.g. {{ secrets.PAT_GITHUB }}) which allows access to private
repositories. Read here for more details:
https://docs.github.com/en/actions/security-guides/automatic-token-authentication.
CODECOV_TOKEN:
description: >
Codecov repository token needed to upload coverage reports.
Providing this token helps prevent report upload failures by bypassing
Codecov's GitHub API rate limits. Read here for more details:
https://docs.codecov.com/docs/adding-the-codecov-token
cache_version:
description: >
Which cache version to use.
Expand Down Expand Up @@ -441,9 +447,13 @@ runs:

- name: 📋 Test coverage
if: inputs.run_covr == 'true' && runner.os == 'Linux'
env:
CODECOV_TOKEN: ${{ inputs.CODECOV_TOKEN }}
run: |
## NOTE: codecov() uses CODECOV_TOKEN env var if specified.
## (recommended)
covr::codecov()
shell: Rscript {0}
shell: Rscript {0}

- name: 🛠 Install package ️
if: inputs.run_pkgdown == 'true' && runner.os == 'Linux'
Expand Down

0 comments on commit 3013968

Please sign in to comment.