Skip to content

Commit

Permalink
waiting longer for the package to appear
Browse files Browse the repository at this point in the history
  • Loading branch information
flowstate committed Nov 6, 2024
1 parent d14dcc7 commit 6495d97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6495d97

Please sign in to comment.