Skip to content

Commit

Permalink
setup: by default, install stable release v1.0.35 now that it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Jul 20, 2022
1 parent 86ec5fd commit 2af57e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ author: 'Christophe Dervieux'
description: 'This action will setup Quarto from the git repository https://github.com/quarto-dev/quarto-cli/'
inputs:
version:
description: 'The version of Quarto to use, as a release tag (eg. 0.9.486). If missing, uses latest version.'
description: 'The version of Quarto to use. Either a release tag (eg. 0.9.486) or "LATEST". If missing, uses stable version.'
required: false
tinytex:
description: 'If true, install TinyTex, required for PDF rendering'
Expand Down Expand Up @@ -39,6 +39,10 @@ runs:
if [ ${{ runner.os }} != "Windows" ]; then
# On Windows scoop will be used so no need to download the release
if [ -z "${{inputs.version}}" ]; then
STABLE_VERSION=1.0.35
# download the latest stable release
wget https://github.com/quarto-dev/quarto-cli/releases/download/v${STABLE_VERSION}/quarto-${STABLE_VERSION}-${{env.BUNDLE_EXT}}
elif [ "${{inputs.version}}" == "LATEST" ]; then
# download the latest release
gh release download --repo quarto-dev/quarto-cli --pattern ${{ format('*{0}', env.BUNDLE_EXT) }}
else
Expand Down

0 comments on commit 2af57e4

Please sign in to comment.