Skip to content

Commit

Permalink
Merge pull request #9 from chriscarrollsmith/dev
Browse files Browse the repository at this point in the history
ci: prevent error if version has not been incremented
  • Loading branch information
chriscarrollsmith authored May 22, 2024
2 parents 387a840 + 7876930 commit 7a07a0b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry publish --build -u __token__ -p $PYPI_TOKEN
if [ $? -ne 0 ]; then
if ! poetry publish --build -u __token__ -p $PYPI_TOKEN; then
echo "::warning::Version has not been incremented. No new version published."
exit 0
fi
fi

0 comments on commit 7a07a0b

Please sign in to comment.