Skip to content

Commit 3adb816

Browse files
committed
jq need to be used as grep not working the same on Mac
1 parent 98e1a7a commit 3adb816

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ 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=$(curl https://quarto.org/docs/download/_prerelease.json | grep -o '"version": .*$' | grep -oP '[\d.]+')
46+
version=$(curl https://quarto.org/docs/download/_prerelease.json | jq -r '.version')
4747
wget https://github.com/quarto-dev/quarto-cli/releases/download/v$version/quarto-$version-${{env.BUNDLE_EXT}}
4848
else
4949
# download a specific release

0 commit comments

Comments
 (0)