Skip to content

Commit

Permalink
Exit if version already was published (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
karpetrosyan authored Nov 30, 2023
1 parent 41681d0 commit f941bb9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/publish
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#! /bin/bash -ex

hatch publish -u __token__ -a $HISHEL_PYPI
value=$(hatch publish -u __token__ -a $HISHEL_PYPI | grep already -c)

if [ $value -eq 0 ]; then
exit 0
else
exit 1
fi

0 comments on commit f941bb9

Please sign in to comment.