Commit 97e5b712 authored by Mitar's avatar Mitar

Run CI also when only pipelines or pipeline runs are added.

parent 065c42d8
......@@ -358,15 +358,14 @@ def validate_file(file_path):
print(">>> File is '.gitattributes'.", flush=True)
return None
match = PIPELINE_REGEX.search(file_path)
if match:
print(">>> File is a pipeline.", flush=True)
return None
match = PIPELINE_RUN_REGEX.search(file_path)
if match:
print(">>> File is a pipeline run.", flush=True)
return None
pipeline_match = PIPELINE_REGEX.search(file_path)
pipeline_run_match = PIPELINE_RUN_REGEX.search(file_path)
if pipeline_match:
file_path = '{interface_version}/{performer_team}/{python_path}/{version}/primitive.json'.format(**pipeline_match.groupdict())
print(">>> File is a pipeline. Rewriting to primitive annotation file '{file_path}'.".format(file_path=file_path), flush=True)
elif pipeline_run_match:
file_path = '{interface_version}/{performer_team}/{python_path}/{version}/primitive.json'.format(**pipeline_run_match.groupdict())
print(">>> File is a pipeline run. Rewriting to primitive annotation file '{file_path}'.".format(file_path=file_path), flush=True)
match = PRIMITIVE_ANNOTATION_REGEX.search(file_path)
if not match:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment