Address pwsh install failure (#4888)

* Address pwsh install failure

* hard code v7.3.10 until https://github.com/PowerShell/PowerShell/issues/20746 is fixed

* Use a proper fix to grab the correct name changed asset
This commit is contained in:
Zack Koppert 2023-11-21 13:59:24 -08:00 committed by GitHub
parent f3279a4414
commit b006bfd8f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ url=$(curl -s \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \
"https://api.github.com/repos/powershell/powershell/releases/${PWSH_VERSION}" |
jq --arg target "${target}" -r '.assets | .[] | select(.name | contains("linux-alpine-" + $target)) | .url')
jq --arg target "${target}" -r '.assets | .[] | select(.name | contains("linux-musl-" + $target)) | .url')
curl --retry 5 --retry-delay 5 -sL \
-H "Accept: application/octet-stream" \
-H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \