Skip to content

Commit

Permalink
better print
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad committed Feb 23, 2024
1 parent cfb06f5 commit e34259b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build-system/scripts/generate_circleci_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ def remove_jobs_from_workflow(jobs, to_remove):
job[key]["requires"] = [r for r in job[key].get("requires", []) if r not in jobs_to_remove]
new_jobs.append(job)
return new_jobs
import sys

def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)

if __name__ == '__main__':
# The CircleCI workflow as a JSON string (Replace this with your actual workflow)
Expand All @@ -98,7 +102,7 @@ def remove_jobs_from_workflow(jobs, to_remove):
# # List of jobs to remove
jobs_to_remove = list(get_already_built_circleci_job_names(workflow_dict["jobs"]))
for key in jobs_to_remove:
print("KEY", key)
eprint("KEY", key)

# Get rid of workflow setup step and setup flag
workflow_dict["setup"] = False
Expand Down

0 comments on commit e34259b

Please sign in to comment.