Skip to content

Commit a76b899

Browse files
committed
Finalise artefact cleaner workflow.
1 parent 8fe2d9e commit a76b899

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

repo_helper/files/bots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def make_artefact_cleaner(repo_path: pathlib.Path, templates: jinja2.Environment
259259

260260
config: MutableMapping[str, Any] = {
261261
"name": "Artefact Cleaner",
262-
"on": {"schedule": {"cron": "0 9 1 * *"}}, # 9 AM on the first of every month.
262+
"on": {"schedule": [{"cron": "0 9 1 * *"}]}, # 9 AM on the 1st of every month.
263263
"jobs": {"Clean": {"runs-on": "ubuntu-latest", "steps": steps}}
264264
}
265265

tests/test_core_/test_via_Repo_class.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
- .github/stale.yml
99
- .github/workflow/assign.yml
1010
- .github/workflows/assign.yml
11+
- .github/workflows/cleanup.yml
1112
- .github/workflows/docs_test_action.yml
1213
- .github/workflows/manylinux_build.yml
1314
- .github/workflows/octocheese.yml

tests/test_core_/test_via_run_repo_helper_backward_stdout.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ The following files will be committed:
33
.dependabot\config.yml
44
.github\ISSUE_TEMPLATE\bug_report.md
55
.github\ISSUE_TEMPLATE\feature_request.md
6+
.github\workflows\cleanup.yml
67
.github\workflows\docs_test_action.yml
78
.github\workflows\octocheese.yml
89
.github\workflows\python_ci.yml

tests/test_core_/test_via_run_repo_helper_forward_stdout.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ The following files will be committed:
33
.dependabot/config.yml
44
.github/ISSUE_TEMPLATE/bug_report.md
55
.github/ISSUE_TEMPLATE/feature_request.md
6+
.github/workflows/cleanup.yml
67
.github/workflows/docs_test_action.yml
78
.github/workflows/octocheese.yml
89
.github/workflows/python_ci.yml

tests/test_files/test_bots_/test_artefact_cleaner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name: Artefact Cleaner
44
on:
55
schedule:
6-
cron: 0 9 1 * *
6+
- cron: 0 9 1 * *
77
jobs:
88
Clean:
99
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)