Skip to content

Commit 0d623bc

Browse files
Merge pull request #41 from CoverGo/add-update-leaderboard-job
Add `update leaderboard` job
2 parents 1aa6fa3 + 3454bfe commit 0d623bc

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

.gflows/gflowspkg.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"libs/job_build_nuget.lib.yml",
2222
"libs/job_unit_test.lib.yml",
2323
"libs/job_version.lib.yml",
24-
"libs/job_deploy_tenants.lib.yml"
24+
"libs/job_deploy_tenants.lib.yml",
25+
"libs/job_update_leaderboard.lib.yml"
2526
]
2627
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#@ load("naming.lib.yml", "job")
2+
#@ load("steps.lib.yml", "steps")
3+
#@ load("common.lib.yml", "common")
4+
5+
---
6+
#@ def generate_update_leaderboard_job_steps(update_leaderboard_section):
7+
- uses: victorx64/pr-label@v0
8+
with:
9+
#@ if hasattr(update_leaderboard_section,"git-pathspec") :
10+
git-pathspec: #@ update_leaderboard_section["git-pathspec"]
11+
#@ end
12+
#@ end
13+
---
14+
#@ def update_leaderboard_job(update_leaderboard_section):
15+
#@ steps = generate_update_leaderboard_job_steps(update_leaderboard_section)
16+
#@ branchCondition = common.build_git_branches_condition(update_leaderboard_section)
17+
#@ return common.generate_job(update_leaderboard_section, steps, None, None, None, None, branchCondition)
18+
#@ end
19+
---
20+

.gflows/workflows/build-publish/build-publish.template.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#@ load("job_integration_tests_legacy.lib.yml", "generate_integration_test_legacy_small")
1616
#@ load("job_integration_tests_legacy.lib.yml", "generate_integration_test_legacy_big")
1717
#@ load("job_deploy_tenants.lib.yml", "tenant_deploy_steps")
18+
#@ load("job_update_leaderboard.lib.yml", "update_leaderboard_job")
1819
#@ load("naming.lib.yml", "job")
1920
#@ load("steps.lib.yml", "steps")
2021
#@ load("common.lib.yml", "common")
@@ -116,7 +117,11 @@
116117
#@ jobs[common.job_id(tenant, "deploy-tenant-")] = tenant_deploy_steps(data.values.deploy_tenants, tenant, deploy_tenants_registry_section, service_sections)
117118
#@ end
118119
#@ end
119-
120+
121+
#@ if hasattr(data.values,"update_leaderboard"):
122+
#@ jobs["update-leaderboard"] = update_leaderboard_job(data.values.update_leaderboard)
123+
#@ end
124+
120125
#@ return jobs
121126
#@ end
122127

0 commit comments

Comments
 (0)