github actions: retry problematic steps up to 5 times
This commit is contained in:
parent
4ab3a39951
commit
8c7b2298f5
8
.github/workflows/packages.yml
vendored
8
.github/workflows/packages.yml
vendored
@ -221,9 +221,9 @@ jobs:
|
||||
if [ "$uploaded_files" = "true" ]; then
|
||||
echo "[$(date +%H:%M:%S)] Adding packages to repository '$REPOSITORY_NAME'..."
|
||||
|
||||
# Retry up to 3 times.
|
||||
# Retry up to 5 times.
|
||||
http_status_code=""
|
||||
for _ in {1..3}; do
|
||||
for _ in {1..5}; do
|
||||
curl_response=$(
|
||||
set +e
|
||||
curl \
|
||||
@ -260,9 +260,9 @@ jobs:
|
||||
|
||||
# Final part to make changes appear in web root.
|
||||
echo "[$(date +%H:%M:%S)] Publishing repository changes..."
|
||||
# Retry up to 3 times.
|
||||
# Retry up to 5 times.
|
||||
http_status_code=""
|
||||
for _ in {1..3}; do
|
||||
for _ in {1..5}; do
|
||||
curl_response=$(
|
||||
set +e
|
||||
curl \
|
||||
|
Loading…
Reference in New Issue
Block a user