diff --git a/.github/workflows/R-CMD-check.yml b/.github/workflows/R-CMD-check.yml index 1c1a2d8..d3604d4 100644 --- a/.github/workflows/R-CMD-check.yml +++ b/.github/workflows/R-CMD-check.yml @@ -7,6 +7,14 @@ on: branches: [main] # Allow for workflow inheritance workflow_call: + inputs: + extra-repositories: + description: | + One or more extra CRAN-like repositories to include in the `repos` global option. + This is a space-separated list of repositories. + required: false + type: string + default: "" name: R-CMD-check @@ -22,6 +30,7 @@ jobs: - uses: r-lib/actions/setup-r@v2 with: use-public-rspm: true + extra-repositories: "${{ inputs.extra-repositories }}" - uses: r-lib/actions/setup-pandoc@v2