Skip to content

Commit bb9345a

Browse files
committed
Run weekly jobs only in tier1 otherwise it would run multiple times
1 parent eca2884 commit bb9345a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/scripts/extract_matrix.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,10 @@ def __gt__(self, other):
276276
def get_tagged_jobs(buildspec, target, filter=None):
277277
jobs = [Job({"name": target}).to_dict()]
278278
for job in sorted([Job(build) for build in buildspec.get("builds", [])]):
279-
if not any(t for t in job.targets if t in [target, "weekly"]):
280-
continue
279+
if not any(t for t in job.targets if t in [target]):
280+
if "weekly" in job.targets and target == "tier1": pass
281+
else:
282+
continue
281283
if filter and not re.match(filter, job.name):
282284
continue
283285
if [x for x in JOB_EXCLUSION_TERMS if x in str(job)]:

0 commit comments

Comments
 (0)