diff --git a/action.yml b/action.yml index 3c3b1663..8fd7804a 100644 --- a/action.yml +++ b/action.yml @@ -7,7 +7,9 @@ runs: - name: Install cargo-binstall if: runner.os != 'Windows' shell: sh - run: curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash + run: | + set -eu + (curl --retry 10 -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh || echo 'exit 1') | bash - name: Install cargo-binstall if: runner.os == 'Windows' run: Set-ExecutionPolicy Unrestricted -Scope Process; iex (iwr "https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.ps1").Content