From af40f64927a716bd20f6deeeb1e60e2c26484394 Mon Sep 17 00:00:00 2001 From: Christophe Dervieux Date: Thu, 29 Feb 2024 09:58:41 +0100 Subject: [PATCH] fix the condition for setup padoc --- .github/workflows/Book.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/Book.yaml b/.github/workflows/Book.yaml index 3410e2fbd..eba0561f1 100644 --- a/.github/workflows/Book.yaml +++ b/.github/workflows/Book.yaml @@ -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