Skip to content

Commit

Permalink
ci: check if api is published before pushing cli update
Browse files Browse the repository at this point in the history
  • Loading branch information
sdaqo committed Aug 7, 2024
1 parent 1b9ee2f commit 22aa83f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,15 @@ jobs:

- name: Lock cli
run: |
sleep 20
while true; do
echo "trying..."
pypi_page=$(curl --silent -L "https://pypi.org/project/anipy-api")
if grep -q "${GITHUB_REF#refs/*/v}" <<< $pypi_page; then
break
fi
sleep 2
done
poetry -C cli/ lock
- name: Build and publish cli to pypi
Expand Down

0 comments on commit 22aa83f

Please sign in to comment.