From 0256e940dd9545e3928733bf45d3cb3aa80e5eb0 Mon Sep 17 00:00:00 2001 From: statasarus Date: Mon, 25 Sep 2023 11:53:32 +0100 Subject: [PATCH] back to previous action --- .github/workflows/action.yml | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index dfbfed31..229201cd 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -31,27 +31,10 @@ jobs: use-public-rspm: true r-version: 'renv' - - name: Set RENV_PATHS_ROOT - shell: bash - run: | - echo "RENV_PATHS_ROOT=${{ runner.temp }}/renv" >> $GITHUB_ENV - - name: Install and activate renv - run: | - install.packages("renv") - renv::activate() - shell: Rscript {0} - - name: Get R and OS version - id: get-version - run: | - cat("##[set-output name=os-version;]", sessionInfo()$running, "\n", sep = "") - cat("##[set-output name=r-version;]", R.Version()$version.string, sep = "") - shell: Rscript {0} - - name: Restore Renv package cache - uses: actions/cache@v3 + - name: Set up renv + uses: r-lib/actions/setup-renv@v2 with: - path: ${{ env.RENV_PATHS_ROOT }} - key: ${{ steps.get-version.outputs.os-version }}-${{ steps.get-version.outputs.r-version }}-${{ inputs.cache-version }}-${{ hashFiles('renv.lock') }} - restore-keys: ${{ steps.get-version.outputs.os-version }}-${{ steps.get-version.outputs.r-version }}-${{inputs.cache-version }}- + cache-version: 2 - name: Build site 🔧 run: |