Skip to content

Commit

Permalink
fix wait for pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu008 committed Jan 13, 2025
1 parent 8ce5ff9 commit 957ec2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@ jobs:
run: |
FILE=$(ls dist/*.whl dist/*.tar.gz | head -n 1)
PUBLISHED_VERSION=$(basename "$FILE" | sed -E 's/^.*-([0-9]+\.[0-9]+\.[0-9a-zA-Z]+(\.[0-9]+)?)-.*$/\1/')
PYPROJECT_NAME=$(poetry version | awk '{print $1}')
pip install tenacity logging
python3 ${GITHUB_WORKSPACE}/.github/workflows/wait-for-pypi.py ${{needs.build.outputs.pyproject_name}}==$PUBLISHED_VERSION
python3 ${GITHUB_WORKSPACE}/.github/workflows/wait-for-pypi.py $PYPROJECT_NAME==$PUBLISHED_VERSION
publish:
name: Build & Publish Docker
Expand Down

0 comments on commit 957ec2e

Please sign in to comment.