Skip to content

Commit 98e1a7a

Browse files
committed
Use the new pre release page without gh for api or jq
This allows to work outside of GHA hosted runner
1 parent 806e8df commit 98e1a7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ runs:
4343
gh release download --repo quarto-dev/quarto-cli --pattern ${{ format('*{0}', env.BUNDLE_EXT) }}
4444
elif [ "${{inputs.version}}" == "LATEST" -o "${{inputs.version}}" == "pre-release" ]; then
4545
# get latest pre release version
46-
version=$(gh api repos/quarto-dev/quarto-cli/releases | jq -r 'map(select(.prerelease)) | first | .tag_name')
47-
gh release download --repo quarto-dev/quarto-cli $version --pattern ${{ format('*{0}', env.BUNDLE_EXT) }}
46+
version=$(curl https://quarto.org/docs/download/_prerelease.json | grep -o '"version": .*$' | grep -oP '[\d.]+')
47+
wget https://github.com/quarto-dev/quarto-cli/releases/download/v$version/quarto-$version-${{env.BUNDLE_EXT}}
4848
else
4949
# download a specific release
5050
wget https://github.com/quarto-dev/quarto-cli/releases/download/v${{inputs.version}}/quarto-${{inputs.version}}-${{env.BUNDLE_EXT}}

0 commit comments

Comments
 (0)