Skip to content

Commit 8909f7a

Browse files
authored
Skip GitLab projects with the "CURRENT_STATUS=PAST" tag. (#448)
1 parent e700858 commit 8909f7a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bootstrap/core/tools/resource-dispatcher/configs/day-two-daily.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ tasks:
4747
)
4848
group = g.groups.get({{ ENV_GITLAB_GROUP | trim }})
4949
context["project_data"] = []
50-
for project in group.projects.list(all=True, include_subgroups=True):
50+
applicable_projects = (project for project in group.projects.list(all=True, include_subgroups=True) if "CURRENT_STATUS=PAST" not in project.tag_list)
51+
for project in applicable_projects:
5152
data = {
5253
"url": project.ssh_url_to_repo,
5354
"directory": str(project.id),

bootstrap/core/tools/resource-dispatcher/configs/translate-engagement-data.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ tasks:
4141
"url": project.ssh_url_to_repo,
4242
"directory": str(project.id)
4343
}
44-
for project in group.projects.list(all=True, include_subgroups=True)]
44+
for project in group.projects.list(all=True, include_subgroups=True) if "CURRENT_STATUS=PAST" not in project.tag_list]
4545
4646
context["ansible_params"] = [{"extra_vars": {"directory": "../../" + project["directory"], "config_dir": "config/credentials"}} for project in context["project_data"]]
4747
- plugin: git

0 commit comments

Comments
 (0)