Skip to content

Commit 2af57e4

Browse files
committed
setup: by default, install stable release v1.0.35 now that it exists
1 parent 86ec5fd commit 2af57e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

setup/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ author: 'Christophe Dervieux'
33
description: 'This action will setup Quarto from the git repository https://github.com/quarto-dev/quarto-cli/'
44
inputs:
55
version:
6-
description: 'The version of Quarto to use, as a release tag (eg. 0.9.486). If missing, uses latest version.'
6+
description: 'The version of Quarto to use. Either a release tag (eg. 0.9.486) or "LATEST". If missing, uses stable version.'
77
required: false
88
tinytex:
99
description: 'If true, install TinyTex, required for PDF rendering'
@@ -39,6 +39,10 @@ runs:
3939
if [ ${{ runner.os }} != "Windows" ]; then
4040
# On Windows scoop will be used so no need to download the release
4141
if [ -z "${{inputs.version}}" ]; then
42+
STABLE_VERSION=1.0.35
43+
# download the latest stable release
44+
wget https://github.com/quarto-dev/quarto-cli/releases/download/v${STABLE_VERSION}/quarto-${STABLE_VERSION}-${{env.BUNDLE_EXT}}
45+
elif [ "${{inputs.version}}" == "LATEST" ]; then
4246
# download the latest release
4347
gh release download --repo quarto-dev/quarto-cli --pattern ${{ format('*{0}', env.BUNDLE_EXT) }}
4448
else

0 commit comments

Comments
 (0)