Skip to content

Commit

Permalink
add GITHUB_TOKEN to check steps
Browse files Browse the repository at this point in the history
  • Loading branch information
bschilder committed Nov 7, 2023
1 parent e7b101d commit b4e0170
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

- *action.yml*
- `repository: ${{ github.repository }}` --> `repository: ${{ env.packageName }}`
- Add `env: GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}` to any checking steps
(allows piggyback to download data from Relesases)

# rworkflows 1.0.0

Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ runs:
AS_CRAN: ${{ inputs.as_cran }}
run_vignettes: ${{ inputs.run_vignettes }}
timeout: ${{ inputs.timeout }}
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
run: |
options(crayon.enabled = TRUE, timeout=Sys.getenv("timeout"))
if(!require("rcmdcheck", quietly=TRUE)) install.packages("rcmdcheck")
Expand All @@ -408,6 +409,7 @@ runs:
if: inputs.has_runit == 'true'
env:
timeout: ${{ inputs.timeout }}
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
run: |
options(crayon.enabled = TRUE, timeout=Sys.getenv("timeout"))
BiocGenerics:::testPackage()
Expand All @@ -421,6 +423,7 @@ runs:
run_vignettes: ${{ inputs.run_vignettes }}
as_cran: ${{ inputs.as_cran }}
timeout: ${{ inputs.timeout }}
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
run: |
options(crayon.enabled = TRUE, timeout=Sys.getenv("timeout"))
#### Install deps ####
Expand All @@ -441,6 +444,8 @@ runs:

- name: 📋 Test coverage
if: inputs.run_covr == 'true' && runner.os == 'Linux'
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
run: |
covr::codecov()
shell: Rscript {0}
Expand Down

0 comments on commit b4e0170

Please sign in to comment.