Skip to content
Snippets Groups Projects
Commit ee937b7a authored by www user for firmware's avatar www user for firmware
Browse files

fix pipeline id comparison

parent 47866878
No related branches found
No related tags found
No related merge requests found
......@@ -50,12 +50,14 @@ def find_latest_pipeline_id():
return None
if args.pipeline_id is None:
pipeline_id = find_latest_pipeline_id()
pipeline_id = int(find_latest_pipeline_id())
if args.pipeline_id_file:
try:
with open(args.pipeline_id_file, "r") as pipeline_id_file:
if pipeline_id == pipeline_id_file.read():
pipeline_id_from_file = int(pipeline_id_file.read())
if pipeline_id == pipeline_id_from_file:
print("Pipeline up to date")
sys.exit(1)
except FileNotFoundError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment