Skip to content

Commit 2de8609

Browse files
authored
fix: use explicit default for version (#89)
* fix: use explicit default for version * style: missing space
1 parent f5f35db commit 2de8609

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ 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. Either a release tag (eg. 0.9.486) or "pre-release" for latest built dev version. If missing, uses latest stable version.'
6+
description: 'The version of Quarto to use. Either a release tag without "v" prefix (e.g., "0.9.486"), "pre-release" for latest built dev version, or 'release', for the latest stable version.'
77
required: false
8+
default: 'release'
89
tinytex:
910
description: 'If true, install TinyTex, required for PDF rendering'
1011
required: false
@@ -41,7 +42,7 @@ runs:
4142
run: |
4243
if [ ${{ runner.os }} != "Windows" ]; then
4344
# On Windows scoop will be used so no need to download the release
44-
if [ -z "${{inputs.version}}" ]; then
45+
if [ "${{inputs.version}}" == "release" ]; then
4546
# download the latest stable release
4647
gh release download --repo github.com/quarto-dev/quarto-cli --pattern ${{ format('*{0}', env.BUNDLE_EXT) }}
4748
version=$(curl https://quarto.org/docs/download/_download.json | jq -r '.version')

0 commit comments

Comments
 (0)