Skip to content

Commit

Permalink
[CI] Fix the r-lib action permission issue (#1537)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayuasu authored Aug 5, 2024
1 parent 231ce35 commit 2505a5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,20 @@ 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: |
any::testthat
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")'
Expand Down

0 comments on commit 2505a5f

Please sign in to comment.