From b4e0170fb58c65a8fa88789ab4d56a8995654433 Mon Sep 17 00:00:00 2001 From: "Brian M. Schilder" <34280215+bschilder@users.noreply.github.com> Date: Tue, 7 Nov 2023 11:04:51 +0000 Subject: [PATCH] add GITHUB_TOKEN to check steps --- NEWS.md | 2 ++ action.yml | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/NEWS.md b/NEWS.md index d93262be..077aa21b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 diff --git a/action.yml b/action.yml index 26ce542f..c42aa100 100644 --- a/action.yml +++ b/action.yml @@ -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") @@ -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() @@ -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 #### @@ -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}