From 939bf87304a47af79044fc6fb90b48c66a729bf9 Mon Sep 17 00:00:00 2001 From: cicdguy <26552821+cicdguy@users.noreply.github.com> Date: Wed, 22 Nov 2023 07:38:28 -0600 Subject: [PATCH] Add ability to override R repositories Signed-off-by: cicdguy <26552821+cicdguy@users.noreply.github.com> --- .github/workflows/build-check-install.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-check-install.yaml b/.github/workflows/build-check-install.yaml index 3b4418dd..b63446fa 100644 --- a/.github/workflows/build-check-install.yaml +++ b/.github/workflows/build-check-install.yaml @@ -28,6 +28,11 @@ on: required: false default: false type: boolean + r-repository-overrides: + description: A comma separated named list of R packages repositories to use for installing dependencies + required: false + default: "CRAN=https://cloud.r-project.org" + type: string enable-staged-dependencies-check: description: Enable staged dependencies YAML check required: false @@ -318,6 +323,7 @@ jobs: enable-check: ${{ inputs.enable-staged-dependencies-check }} run-system-dependencies: ${{ inputs.install-system-dependencies }} direction: ${{ inputs.sd-direction }} + cran-repos: ${{ inputs.r-repository-overrides }} - name: Show session info and installed packages ℹ run: |