From 2af57e4569ed9f5d8f8370b1b7ddf9a4bcf41a9b Mon Sep 17 00:00:00 2001 From: Carlos Scheidegger Date: Wed, 20 Jul 2022 12:11:54 -0700 Subject: [PATCH] setup: by default, install stable release v1.0.35 now that it exists --- setup/action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup/action.yml b/setup/action.yml index a004ff0..4b522ac 100644 --- a/setup/action.yml +++ b/setup/action.yml @@ -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' @@ -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