feat: allow manual version overrides
This commit is contained in:
parent
f3ba8cbc3c
commit
b9ce80f179
2 changed files with 16 additions and 10 deletions
8
check.py
8
check.py
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue