From 8c88c0d76180a139d4ea8fe6276fb5349d315a28 Mon Sep 17 00:00:00 2001 From: Andrew Collier Date: Tue, 23 Apr 2024 15:34:14 +0100 Subject: [PATCH] fix: Bump cache key; print R version --- .github/workflows/check.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 466f669..b5bdc57 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -84,14 +84,15 @@ jobs: install.packages('remotes') saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2) writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version") + cat(".github/R-version") shell: Rscript {0} - name: Restore R package cache uses: actions/cache@v3 with: path: ${{ env.R_LIBS_USER }} - key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }} - restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1- + key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-2-${{ hashFiles('.github/depends.Rds') }} + restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-2- - name: Install OS dependencies if: runner.os == 'Linux'