feat: allow manual version overrides

This commit is contained in:
Oskar Manhart 2025-07-22 12:53:42 +02:00
parent f3ba8cbc3c
commit b9ce80f179
2 changed files with 16 additions and 10 deletions

View file

@ -22,12 +22,14 @@ def does_pypi_version_exist(base_url: str, package: str, version: str) -> bool:
def main():
repository = os.environ["REPOSITORY"]
package = os.environ["PACKAGE"]
base_url = os.environ["BASE_URL"]
version = get_github_version(repository)
version = os.environ.get(
"VERSION",
get_github_version(os.environ["REPOSITORY"])
)
if does_pypi_version_exist(base_url, package, version):
sys.exit(0)