@@ -74,7 +74,9 @@ def main(args):
74
74
]
75
75
76
76
jobs_using_registry_components = sorted (
77
- glob .glob ("jobs/pipelines-with-components/basics/**/*pipeline*.yml" , recursive = True )
77
+ glob .glob (
78
+ "jobs/pipelines-with-components/basics/**/*pipeline*.yml" , recursive = True
79
+ )
78
80
)
79
81
jobs_using_registry_components = [
80
82
job .replace (".yml" , "" )
@@ -123,7 +125,15 @@ def main(args):
123
125
]
124
126
125
127
# write workflows
126
- write_workflows (jobs , jobs_using_registry_components , endpoints , resources , assets , scripts , schedules )
128
+ write_workflows (
129
+ jobs ,
130
+ jobs_using_registry_components ,
131
+ endpoints ,
132
+ resources ,
133
+ assets ,
134
+ scripts ,
135
+ schedules ,
136
+ )
127
137
128
138
# read existing README.md
129
139
with open ("README.md" , "r" ) as f :
@@ -293,7 +303,15 @@ def write_readme(jobs, endpoints, resources, assets, scripts, schedules):
293
303
print ("Finished writing README.md..." )
294
304
295
305
296
- def write_workflows (jobs , jobs_using_registry_components , endpoints , resources , assets , scripts , schedules ):
306
+ def write_workflows (
307
+ jobs ,
308
+ jobs_using_registry_components ,
309
+ endpoints ,
310
+ resources ,
311
+ assets ,
312
+ scripts ,
313
+ schedules ,
314
+ ):
297
315
print ("writing .github/workflows..." )
298
316
299
317
# process jobs
@@ -421,6 +439,7 @@ def write_job_workflow(job):
421
439
with open (f"../.github/workflows/cli-{ job .replace ('/' , '-' )} .yml" , "w" ) as f :
422
440
f .write (workflow_yaml )
423
441
442
+
424
443
def write_job_using_registry_components_workflow (job ):
425
444
filename , project_dir , hyphenated = parse_path (job )
426
445
folder_name = project_dir .split ("/" )[- 1 ]
@@ -483,9 +502,12 @@ def write_job_using_registry_components_workflow(job):
483
502
working-directory: cli/{ project_dir } \n """
484
503
485
504
# write workflow
486
- with open (f"../.github/workflows/cli-{ job .replace ('/' , '-' )} -registry.yml" , "w" ) as f :
505
+ with open (
506
+ f"../.github/workflows/cli-{ job .replace ('/' , '-' )} -registry.yml" , "w"
507
+ ) as f :
487
508
f .write (workflow_yaml )
488
509
510
+
489
511
def write_endpoint_workflow (endpoint ):
490
512
filename , project_dir , hyphenated = parse_path (endpoint )
491
513
creds = CREDENTIALS
0 commit comments