Skip to content

Commit

Permalink
Fix Pandoc nightly install in GHA (#2559)
Browse files Browse the repository at this point in the history
Revert to using own custom action waiting for r-lib/actions#868 to be fixed
  • Loading branch information
cderv authored Jul 2, 2024
1 parent 4b2f342 commit a9497ff
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
fail-fast: false
matrix:
config:
# testing R release with latest pandoc version and their dev version
# testing R release with last shipped pandoc version in RStudio IDE and new pandoc
- {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 @@ -53,6 +53,9 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

permissions:
actions: read

steps:
- uses: actions/checkout@v3

Expand All @@ -77,10 +80,17 @@ 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 }}
token: ${{ secrets.GITHUB_TOKEN }}

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

- name: Pandoc and Tinytex info
run: |
Expand Down

0 comments on commit a9497ff

Please sign in to comment.