File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,12 +58,21 @@ inputs:
5858 required : false
5959 default : ' '
6060
61+ retry-all-errors :
62+ description : |
63+ Whether to retry on all errors.
64+ required : false
65+ default : false
66+
67+
6168runs :
6269 using : " composite"
6370
6471 steps :
6572 - name : Install chainctl
6673 shell : bash
74+ env :
75+ CURL_RETRY_ALL_ERRORS : ${{ inputs.retry-all-errors }}
6776 run : |
6877 cd $(mktemp -d)
6978
8998 fi
9099 echo "Downloading chainctl from ${url}"
91100
92- curl -o ./${out} -fsL --retry 5 --retry-delay 1 "${url}"
101+ if [[ "${{ env.CURL_RETRY_ALL_ERRORS }}" != "true" ]]; then
102+ curl -o ./${out} -fsL --retry 5 --retry-delay 1 "${url}"
103+ else
104+ curl -o ./${out} -fsL --retry 5 --retry-delay 1 --retry-all-errors "${url}"
105+ fi
93106 chmod +x ./${out}
94107 echo "$(pwd)" >> $GITHUB_PATH
95108
You can’t perform that action at this time.
0 commit comments