From 2505a5f28ce21ba070cf1b9ebc3cf32b8fc2c330 Mon Sep 17 00:00:00 2001 From: Jia Yu Date: Sun, 4 Aug 2024 22:23:31 -0700 Subject: [PATCH] [CI] Fix the r-lib action permission issue (#1537) --- .github/workflows/docs.yml | 4 ++-- .github/workflows/r.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3f528c52d3..c795096437 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -36,12 +36,12 @@ jobs: - run: pip install mkdocs-git-revision-date-localized-plugin - run: pip install mike - run: sudo apt update - - uses: r-lib/actions/setup-r@v2 + - uses: r-lib/actions/setup-r@v2.9.0 with: r-version: release use-public-rspm: true - name: Query R dependencies - uses: r-lib/actions/setup-r-dependencies@v2 + uses: r-lib/actions/setup-r-dependencies@v2.9.0 with: cache: true extra-packages: | diff --git a/.github/workflows/r.yml b/.github/workflows/r.yml index 2ec23c7706..9782e8977e 100644 --- a/.github/workflows/r.yml +++ b/.github/workflows/r.yml @@ -60,12 +60,12 @@ jobs: sudo apt-get -y remove --purge default-jdk adoptopenjdk-11-hotspot || : shell: bash - uses: actions/checkout@v4 - - uses: r-lib/actions/setup-r@v2 + - uses: r-lib/actions/setup-r@v2.9.0 with: r-version: ${{ matrix.r }} use-public-rspm: true - name: Query R dependencies - uses: r-lib/actions/setup-r-dependencies@v2 + uses: r-lib/actions/setup-r-dependencies@v2.9.0 with: cache: true extra-packages: | @@ -73,7 +73,7 @@ jobs: any::rcmdcheck working-directory : './R' - name: Build and check R package - uses: r-lib/actions/check-r-package@v2 + uses: r-lib/actions/check-r-package@v2.9.0 with: build_args: 'c("--no-build-vignettes", "--no-manual")' args: 'c("--no-build-vignettes", "--no-manual", "--no-tests")'