File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 9
9
description : ' If true, install TinyTex, required for PDF rendering'
10
10
required : false
11
11
default : ' false'
12
+ outputs :
13
+ version :
14
+ description : ' The installed version of quarto.'
12
15
runs :
13
16
using : ' composite'
14
17
steps :
@@ -41,15 +44,22 @@ runs:
41
44
if [ -z "${{inputs.version}}" ]; then
42
45
# download the latest stable release
43
46
gh release download --repo quarto-dev/quarto-cli --pattern ${{ format('*{0}', env.BUNDLE_EXT) }}
47
+ version=$(curl https://quarto.org/docs/download/_download.json | jq -r '.version')
48
+ echo "version=${version}" >> $GITHUB_OUTPUT
44
49
elif [ "${{inputs.version}}" == "LATEST" -o "${{inputs.version}}" == "pre-release" ]; then
45
50
# get latest pre release version
46
51
version=$(curl https://quarto.org/docs/download/_prerelease.json | jq -r '.version')
47
52
wget https://github.com/quarto-dev/quarto-cli/releases/download/v$version/quarto-$version-${{env.BUNDLE_EXT}}
53
+ echo "version=${version}" >> $GITHUB_OUTPUT
48
54
else
49
55
# download a specific release
50
56
wget https://github.com/quarto-dev/quarto-cli/releases/download/v${{inputs.version}}/quarto-${{inputs.version}}-${{env.BUNDLE_EXT}}
57
+ echo "version=${{inputs.version}}" >> $GITHUB_OUTPUT
51
58
fi
52
- echo "installer=$(ls quarto*${{ env.BUNDLE_EXT }})" >> $GITHUB_OUTPUT
59
+ echo "installer=$(ls quarto*${{ env.BUNDLE_EXT }})" >> $GITHUB_OUTPUT
60
+ else
61
+ # FIXME: how to get version information from scoop in windows runners?
62
+ # send the cderv bat-signal!
53
63
fi
54
64
shell : bash
55
65
- name : ' Install Quarto'
You can’t perform that action at this time.
0 commit comments