ci: tag fixes and robustness to workflow failures (#3838)

This commit is contained in:
Jordan Frazier 2024-09-17 18:03:48 -07:00 • committed by GitHub
commit a7d1449e9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 125 additions and 35 deletions

View file

@ -29,7 +29,7 @@ def update_base_dep(pyproject_path: str, new_version: str) -> None:
if not pattern.search(content):
raise Exception(f'langflow-base dependency not found in "{filepath}"')
replacement = f'langflow-base-nightly = "^{new_version}"'
replacement = f'langflow-base-nightly = "{new_version}"'
content = pattern.sub(replacement, content)
with open(filepath, "w") as file:
@ -54,6 +54,10 @@ def main() -> None:
raise Exception("New version not specified")
base_version = sys.argv[1]
# Strip "v" prefix from version if present
if base_version.startswith("v"):
base_version = base_version[1:]
verify_pep440(base_version)
update_base_dep("pyproject.toml", base_version)