only retry on failure
Some checks failed
Python package / lint (push) Successful in 7s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Build distribution 📦 (push) Successful in 9s
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to PyPI (push) Has been skipped
Publish Python 🐍 distribution 📦 to PyPI and TestPyPI / Publish Python 🐍 distribution 📦 to TestPyPI (push) Failing after 2s

This commit is contained in:
Brendan Haines 2024-09-14 17:35:46 -06:00
parent 69505e8371
commit e677309631

View File

@ -96,6 +96,10 @@ def wrap(command: List[str], config: Path, retries: int, version):
with gotify.Gotify(base_url=url, app_token=app_token) as gotify_connection: with gotify.Gotify(base_url=url, app_token=app_token) as gotify_connection:
gotify_connection.create_message(message=message, title=title) gotify_connection.create_message(message=message, title=title)
if not result.returncode:
# only retry on failure
break
sys.exit(result.returncode) sys.exit(result.returncode)