From 63dc36b034d97d7e22d5b07abfc57139b933ca15 Mon Sep 17 00:00:00 2001 From: "Henrik Sparre Spiegelhauer (HSPU)" Date: Tue, 16 Apr 2024 13:51:46 +0200 Subject: [PATCH] . --- .github/workflows/R-CMD-check-versions.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/R-CMD-check-versions.yaml b/.github/workflows/R-CMD-check-versions.yaml index d144ee6..f3c101d 100644 --- a/.github/workflows/R-CMD-check-versions.yaml +++ b/.github/workflows/R-CMD-check-versions.yaml @@ -38,11 +38,11 @@ - name: Determine the CRAN image to use id: cran-image run: | - if ("${{ matrix.config.date }}" == "latest") { + if [ "${{ matrix.config.date }}" == "latest" ]; then echo "::set-output name=image::https://packagemanager.posit.co/cran" - } else { + else echo "::set-output name=image::https://packagemanager.posit.co/cran/${{ matrix.config.date }}" - } + fi shell: bash - name: Debug image @@ -50,7 +50,8 @@ echo ${{ steps.cran-image.outputs.image }} shell: bash - - uses: ./.github/actions/setup-r-dependencies.yaml + - name: Install R dependencies (custom) + uses: ./.github/actions/setup-r-dependencies.yaml with: cache: true dependency_repo: ${{ steps.cran-image.outputs.image }}