mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
Print attempt number
This commit is contained in:
parent
94688d517b
commit
5ee771bd0f
4
.github/scripts/publish-crate.sh
vendored
4
.github/scripts/publish-crate.sh
vendored
|
@ -20,10 +20,10 @@ function wait_for_release() {
|
||||||
local expected_version
|
local expected_version
|
||||||
expected_version=$(grep -E '^version' Cargo.toml | grep -oE '[0-9.]+')
|
expected_version=$(grep -E '^version' Cargo.toml | grep -oE '[0-9.]+')
|
||||||
|
|
||||||
local attempts=0
|
local attempts=1
|
||||||
|
|
||||||
while [ $attempts -le 15 ]; do
|
while [ $attempts -le 15 ]; do
|
||||||
echo "Polling crates.io to see if the version has updated"
|
echo "Polling crates.io to see if the version has updated (attempt $attempts)"
|
||||||
if curl "$url_to_poll" | grep "$expected_version"; then
|
if curl "$url_to_poll" | grep "$expected_version"; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue