Skip to content

Commit

Permalink
fix: curlがエラーになるのでリトライを入れる (#2217)
Browse files Browse the repository at this point in the history
curlがエラーになるのでリトライを入れる
  • Loading branch information
Hiroshiba authored Aug 14, 2024
1 parent 535ca9c commit cbd5c43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/actions/download-engine/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ runs:
cat $TEMPDIR/target.json | jq -er '[.assets[] | select(.name | contains("'$TARGET'") and endswith(".7z.txt"))][0]' > $TEMPDIR/assets_txt.json
LIST_URL=$(cat $TEMPDIR/assets_txt.json | jq -er '.browser_download_url')
echo "7z.txt url: $LIST_URL"
echo $LIST_URL | xargs curl -sSL > $TEMPDIR/download_name.txt
echo $LIST_URL | xargs curl -sSL --retry 3 --retry-delay 5 --retry-all-errors > $TEMPDIR/download_name.txt
echo "Files to download:"
cat $TEMPDIR/download_name.txt | sed -e 's|^|- |'
# ファイル一覧のtxtにあるファイルをダウンロード
for i in $(cat $TEMPDIR/download_name.txt); do
URL=$(cat $TEMPDIR/target.json | jq -er "[.assets[] | select(.name == \"$i\")][0].browser_download_url")
echo "Download url: $URL, dest: $TEMPDIR/$i"
curl -sSL $URL -o $TEMPDIR/$i &
curl -sSL $URL --retry 3 --retry-delay 5 --retry-all-errors -o $TEMPDIR/$i &
done
for job in `jobs -p`; do
wait $job
Expand Down
3 changes: 2 additions & 1 deletion build/codesign_setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ fi

# eSignerCKAのセットアップ
if [ ! -d "$ESIGNERCKA_INSTALL_DIR" ]; then
curl -LO "https://github.com/SSLcom/eSignerCKA/releases/download/v1.0.6/SSL.COM-eSigner-CKA_1.0.6.zip"
curl -LO --retry 3 --retry-delay 5 --retry-all-errors \
"https://github.com/SSLcom/eSignerCKA/releases/download/v1.0.6/SSL.COM-eSigner-CKA_1.0.6.zip"
unzip -o SSL.COM-eSigner-CKA_1.0.6.zip
mv *eSigner*CKA_*.exe eSigner_CKA_Installer.exe
powershell "
Expand Down

0 comments on commit cbd5c43

Please sign in to comment.