From 5ee771bd0f3e054d5826d9fa9608b13dc91926ea Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Thu, 14 Jul 2022 22:33:39 +0100 Subject: [PATCH] Print attempt number --- .github/scripts/publish-crate.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/publish-crate.sh b/.github/scripts/publish-crate.sh index 00f1f3db..075cb661 100644 --- a/.github/scripts/publish-crate.sh +++ b/.github/scripts/publish-crate.sh @@ -20,10 +20,10 @@ function wait_for_release() { local expected_version expected_version=$(grep -E '^version' Cargo.toml | grep -oE '[0-9.]+') - local attempts=0 + local attempts=1 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 return fi