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
|
if [ "$uploaded_files" = "true" ]; then
|
||||||
echo "[$(date +%H:%M:%S)] Adding packages to repository '$REPOSITORY_NAME'..."
|
echo "[$(date +%H:%M:%S)] Adding packages to repository '$REPOSITORY_NAME'..."
|
||||||
|
|
||||||
# Retry up to 3 times.
|
# Retry up to 5 times.
|
||||||
http_status_code=""
|
http_status_code=""
|
||||||
for _ in {1..3}; do
|
for _ in {1..5}; do
|
||||||
curl_response=$(
|
curl_response=$(
|
||||||
set +e
|
set +e
|
||||||
curl \
|
curl \
|
||||||
@ -260,9 +260,9 @@ jobs:
|
|||||||
|
|
||||||
# Final part to make changes appear in web root.
|
# Final part to make changes appear in web root.
|
||||||
echo "[$(date +%H:%M:%S)] Publishing repository changes..."
|
echo "[$(date +%H:%M:%S)] Publishing repository changes..."
|
||||||
# Retry up to 3 times.
|
# Retry up to 5 times.
|
||||||
http_status_code=""
|
http_status_code=""
|
||||||
for _ in {1..3}; do
|
for _ in {1..5}; do
|
||||||
curl_response=$(
|
curl_response=$(
|
||||||
set +e
|
set +e
|
||||||
curl \
|
curl \
|
||||||
|
Loading…
Reference in New Issue
Block a user