Skip to content

Commit

Permalink
use from documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
linogaliana committed Oct 17, 2024
1 parent b7bc513 commit 7231e99
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,29 @@ jobs:
needs: docker
runs-on: ubuntu-latest
container: inseefrlab/utilitr:latest
env:
RENV_PATHS_ROOT: ~/.cache/R/renv
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Install dependencies
- name: Configure safe repository
run: |
git config --global --add safe.directory /__w/utilitR/utilitR
Rscript -e "renv::restore()"
- name: Cache packages
uses: actions/cache@v1
with:
path: ${{ env.RENV_PATHS_ROOT }}
key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }}
restore-keys: |
${{ runner.os }}-renv-
- name: Restore packages
shell: Rscript {0}
run: |
if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv")
renv::restore()
env:
GITHUB_PAT: ${{ secrets.PAT }}
- name: Render Book
Expand Down

0 comments on commit 7231e99

Please sign in to comment.