Skip to content

Commit

Permalink
Update Pandoc installation using lastversion in workflow
Browse files Browse the repository at this point in the history
The SDK generation workflow has now been modified to use the 'lastversion' tool to download the latest version of Pandoc depending on the system architecture. This ensures our documentation generation process always stays updated with the latest version of Pandoc.
  • Loading branch information
Omar Al-Jarrah committed Oct 23, 2023
1 parent 9027f4b commit ef92bb5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/generate-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@ jobs:
python3 ./__main__.py -p ./temp -n "$namespace"
- name: Install Pandoc
run: |
pip3 install lastversion
architecture="$(dpkg --print-architecture)"
curl -O -L "https://github.com/jgm/pandoc/releases/download/3.1.8/pandoc-3.1.8-1-$architecture.deb"
lastversion --assets --filter "$architecture.deb" download https://github.com/jgm/pandoc
sudo dpkg -i *.deb
- name: Format docs
working-directory: expediagroup/sdk/docsgen/docs
Expand Down

0 comments on commit ef92bb5

Please sign in to comment.