Skip to content

Commit

Permalink
ci: updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Nov 21, 2024
1 parent d83081d commit aba7e85
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish_python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ jobs:
run: |
version="${{ needs.build.outputs.version }}"
status_code=$(curl -o /dev/null -s -w "%{http_code}" https://pypi.org/project/${{ env.PACKAGE_NAME }}/${version}/)
if [ "$status_code" = "403" ]; then
is_new_version=true
else
echo "status_code=${status_code}"
if [ "$status_code" = "200" ]; then
is_new_version=false
else
is_new_version=true
fi
echo "is_new_version=${is_new_version}" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit aba7e85

Please sign in to comment.