diff --git a/.github/workflows/get_occ_cube.yaml b/.github/workflows/get_occ_cube.yaml index 0b1fd38..e990cb5 100644 --- a/.github/workflows/get_occ_cube.yaml +++ b/.github/workflows/get_occ_cube.yaml @@ -25,6 +25,9 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.AUTOMATISATION }} + + - name: Set R library path + run: echo "R_LIBS_USER=$HOME/.local/share/R" >> $GITHUB_ENV - name: Setup R uses: r-lib/actions/setup-r@v2 @@ -43,6 +46,8 @@ jobs: with: path: ${{ env.R_LIBS_USER }} key: ${{ runner.os }}-r-${{ hashFiles('**/install_packages_cube*.R') }} + restore-keys: | + ${{ runner.os }}-r- - name: Install R packages run: | @@ -59,6 +64,9 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.AUTOMATISATION }} + + - name: Set R library path + run: echo "R_LIBS_USER=$HOME/.local/share/R" >> $GITHUB_ENV - uses: actions/cache@v3 with: @@ -90,6 +98,9 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.AUTOMATISATION }} + + - name: Set R library path + run: echo "R_LIBS_USER=$HOME/.local/share/R" >> $GITHUB_ENV - uses: actions/cache@v3 with: @@ -119,6 +130,9 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.AUTOMATISATION }} + + - name: Set R library path + run: echo "R_LIBS_USER=$HOME/.local/share/R" >> $GITHUB_ENV - uses: actions/cache@v3 with: @@ -150,6 +164,9 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.AUTOMATISATION }} + + - name: Set R library path + run: echo "R_LIBS_USER=$HOME/.local/share/R" >> $GITHUB_ENV - uses: actions/cache@v3 with: