Skip to content

Commit 0ac9b7c

Browse files
authored
Speedup retry logic to make more aggresive (#21)
1 parent 6aa049e commit 0ac9b7c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ runs:
9191
break
9292
fi
9393
attempt=$((attempt + 1))
94-
echo "::warning::Attempt $attempt failed to fetch version, retrying in 60 seconds. stdout: ${version_tag}" >&2
95-
sleep 60
94+
delay=$((10 + attempt * 10))
95+
echo "::warning::Attempt $attempt failed to fetch version, retrying in $delay seconds. stdout: ${version_tag}" >&2
96+
sleep $delay
9697
done
9798
9899
if [[ -z "$version" ]]; then

0 commit comments

Comments
 (0)