ci: tag fixes and robustness to workflow failures (#3838)
This commit is contained in:
parent
f17de26ab0
commit
a7d1449e9d
10 changed files with 125 additions and 35 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue