Skip to content

Commit

Permalink
fix the condition for setup padoc
Browse files Browse the repository at this point in the history
  • Loading branch information
cderv committed Feb 29, 2024
1 parent ae74915 commit af40f64
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/Book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,11 @@ jobs:
uses: r-lib/actions/setup-r@v2

- name: Install Pandoc
if: ${{ ! github.event.inputs.ghpages }}
uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: '2.17.1.1'

- uses: cderv/actions/setup-pandoc-nightly@nightly-pandoc
# install nightly when checking on gh-pages
if: github.event.inputs.ghpages
# install nightly when checking on gh-pages
pandoc-version: ${{ github.event.inputs.ghpages && 'nightly' || '2.17.1.1' }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install TinyTeX
uses: r-lib/actions/setup-tinytex@v2
Expand Down

0 comments on commit af40f64

Please sign in to comment.