From 6495d9781d68049f3610e08c314e2402f38b314e Mon Sep 17 00:00:00 2001 From: Eric Hibbs Date: Wed, 6 Nov 2024 15:33:21 -0800 Subject: [PATCH] waiting longer for the package to appear --- .github/workflows/pr-preview.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index b1fb537..db9ff60 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -99,14 +99,14 @@ jobs: if: steps.version_check.outputs.exists != 'true' id: verify_package run: | - # Wait for package to be available (try up to 5 times with 10s delay) + # Wait for package to be available (try up to 5 times with 60s delay) for i in {1..5}; do if curl -s https://test.pypi.org/pypi/socketsecurity/$VERSION/json | grep -q '"version": "'$VERSION'"'; then echo "Package ${VERSION} is now available on Test PyPI" exit 0 fi - echo "Attempt $i: Package not yet available, waiting 10s..." - sleep 10 + echo "Attempt $i: Package not yet available, waiting 60s..." + sleep 60 done echo "Package ${VERSION} not available after 5 attempts" exit 1