Skip to content

Commit 05ad597

Browse files
authored
fix: retry curl dotnet-install.sh (#2119)
1 parent 0aefdf3 commit 05ad597

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/sdk.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ jobs:
7373

7474
- name: Installing Linux Dependencies
7575
if: ${{ inputs.target == 'Linux' && steps.cache.outputs.cache-hit != 'true' }}
76+
shell: bash
7677
run: |
7778
apt-get update
7879
apt-get install -y zlib1g-dev libcurl4-openssl-dev libssl-dev build-essential cmake curl
79-
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 9.0 --install-dir /usr/share/dotnet
80+
set -eo pipefail
81+
curl -sSL --retry 5 https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 9.0 --install-dir /usr/share/dotnet
8082
echo "/usr/share/dotnet" >> $GITHUB_PATH
8183
env:
8284
DEBIAN_FRONTEND: noninteractive

0 commit comments

Comments
 (0)