File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33from generate_workflows_lib import (
44 get_lint_job_datas ,
5+ get_misc_job_datas ,
56 get_test_job_datas ,
67 get_tox_envs ,
78)
1011
1112
1213def get_gh_contexts_from_jobs (job_datas ):
14+ def get_job_name (job ):
15+ if isinstance (job , str ):
16+ return job
17+ return job ["ui_name" ]
18+
1319 return [
14- f""" {{ context = "{ job ["ui_name" ]} " }},\n """ for job in job_datas
20+ f""" {{ context = "{ get_job_name (job )} " }},\n """
21+ for job in job_datas
1522 ]
1623
1724
@@ -20,6 +27,7 @@ def get_gh_contexts_from_jobs(job_datas):
2027 + get_gh_contexts_from_jobs (
2128 get_test_job_datas (get_tox_envs (tox_ini_path ), ["ubuntu-latest" ])
2229 )
30+ + get_gh_contexts_from_jobs (get_misc_job_datas (get_tox_envs (tox_ini_path )))
2331)
2432with open ("opentelemetry-admin-jobs.txt" , "w" ) as f :
2533 for job in jobs :
You can’t perform that action at this time.
0 commit comments