Skip to content

Commit f7aabfe

Browse files
committed
Serialize also misc jobs
1 parent 39e017a commit f7aabfe

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/generate_required_checks.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from generate_workflows_lib import (
44
get_lint_job_datas,
5+
get_misc_job_datas,
56
get_test_job_datas,
67
get_tox_envs,
78
)
@@ -10,8 +11,14 @@
1011

1112

1213
def 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
)
2432
with open("opentelemetry-admin-jobs.txt", "w") as f:
2533
for job in jobs:

0 commit comments

Comments
 (0)