Skip to content

Commit

Permalink
Use custom pandoc-devel action (#1471)
Browse files Browse the repository at this point in the history
as we wait for r-lib/actions#868 to be fixed
  • Loading branch information
cderv authored Jul 2, 2024
1 parent 43ee6c3 commit 542f21b
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
# testing R release with latest pandoc version and their dev version
- {os: windows-latest, pandoc: 'latest', r: 'release'}
- {os: macOS-latest, pandoc: 'latest', r: 'release'}
- {os: ubuntu-latest, pandoc: 'nightly', r: 'release'}
- {os: ubuntu-latest, pandoc: 'devel', r: 'release'}
# testing older pandoc versions
- {os: ubuntu-latest, pandoc: '3.1.11', r: 'release'}
- {os: ubuntu-latest, pandoc: '2.19.2', r: 'release'}
Expand All @@ -62,14 +62,12 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

permissions:
actions: read

steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: ${{ matrix.config.pandoc }}
token: ${{ secrets.GITHUB_TOKEN }}

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
Expand Down Expand Up @@ -97,6 +95,18 @@ jobs:
extra-packages: any::rcmdcheck
needs: check

- name: Remove default installed Pandoc
if: runner.os == 'Linux'
run: sudo dpkg -r pandoc

- uses: r-lib/actions/setup-pandoc@v2
if: matrix.config.pandoc != 'devel'
with:
pandoc-version: ${{ matrix.config.pandoc }}

- uses: cderv/actions/setup-pandoc-nightly@nightly-pandoc
if: matrix.config.pandoc == 'devel'

- name: Pandoc and Tinytex info
run: |
rmarkdown::find_pandoc()
Expand Down

0 comments on commit 542f21b

Please sign in to comment.