Skip to content

Commit

Permalink
Update run_tests.yml
Browse files Browse the repository at this point in the history
Github changed asset layouts, so we need one more level of indirection to get the pandoc binaries.

Namely, we need the location containing the "expanded_assets" string.
  • Loading branch information
sergiocorreia authored Sep 26, 2022
1 parent 2a281fa commit b1fcddf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
- name: Download Pandoc
run: |
[[ ${{ matrix.pandoc-version }} == "latest" ]] && url="https://github.com/jgm/pandoc/releases/latest" || url="https://github.com/jgm/pandoc/releases/tag/${{ matrix.pandoc-version }}"
url=$(curl -L $url | grep -o 'https://[a-zA-Z/.]*expanded_assets/[0-9.]*')
downloadUrl="https://github.com$(curl -L $url | grep -o '/jgm/pandoc/releases/download/.*-amd64\.deb')"
wget --no-verbose "$downloadUrl"
sudo dpkg -i "${downloadUrl##*/}"
Expand Down

0 comments on commit b1fcddf

Please sign in to comment.