From f83f9c6273b9c549ca0039940d398b35322828e9 Mon Sep 17 00:00:00 2001 From: Schuyler Eldridge Date: Sat, 10 Feb 2024 16:43:46 -0500 Subject: [PATCH] [nfc] Put pandoc install in configurable location Signed-off-by: Schuyler Eldridge --- .github/workflows/pandoc.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pandoc.yml b/.github/workflows/pandoc.yml index 80bf5756..7075e064 100644 --- a/.github/workflows/pandoc.yml +++ b/.github/workflows/pandoc.yml @@ -12,6 +12,7 @@ on: env: pandoc-version: 3.1.11.1 pandoc-crossref-version: v0.3.17.0c + pandoc-install-dir: /opt/pandoc jobs: markdown-to-pdf: @@ -27,10 +28,10 @@ jobs: - name: "Install pandoc ${{ env.pandoc-version }}, pandoc-crossref ${{ env.pandoc-crossref-version }}" shell: bash run: | - mkdir -p usr/bin - wget https://github.com/jgm/pandoc/releases/download/${{ env.pandoc-version }}/pandoc-${{ env.pandoc-version }}-linux-amd64.tar.gz -O - | tar -zx -C usr/bin --strip-components 2 - wget https://github.com/lierdakil/pandoc-crossref/releases/download/${{ env.pandoc-crossref-version }}/pandoc-crossref-Linux.tar.xz -O - | tar -Jx -C usr/bin - echo "$(pwd)/usr/bin" >> $GITHUB_PATH + mkdir -p ${{ env.pandoc-install-dir }}/bin + wget https://github.com/jgm/pandoc/releases/download/${{ env.pandoc-version }}/pandoc-${{ env.pandoc-version }}-linux-amd64.tar.gz -O - | tar -zx -C ${{ env.pandoc-install-dir }}/bin --strip-components 2 + wget https://github.com/lierdakil/pandoc-crossref/releases/download/${{ env.pandoc-crossref-version }}/pandoc-crossref-Linux.tar.xz -O - | tar -Jx -C ${{ env.pandoc-install-dir }}/bin + echo "${{ env.pandoc-install-dir }}/bin" >> $GITHUB_PATH - name: "Check Formatting" shell: bash run: |