Skip to content

Commit

Permalink
back to previous action
Browse files Browse the repository at this point in the history
  • Loading branch information
statasaurus committed Sep 25, 2023
1 parent 7464431 commit 0256e94
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 0256e94

Please sign in to comment.