Skip to content

Commit e71e470

Browse files
committed
Add schedule triggers to workflows whenever possible
This repository contains several GitHub Actions workflows, both hosted in this repository as reusable assets for use in other projects, or to facilitate the development and maintenance of the `arduino/tooling-project-assets` repo itself. The workflows are typically configured to run whenever any relevant file in the repository is changed. However, the results of the workflow run are also dependent on the external environment it runs in, which include: - The software running on the GitHub hosted GitHub Actions runner machines - The GitHub Actions actions used by the workflow - The dependencies that are installed by the workflow directly or via the GitHub Actions actions it uses The workflows often do not fully pin to a specific version of given external tool. This was done in the interest on reducing the maintenance burden of keeping the systems up to date. However, it also means that a new release can cause the workflow runs to start failing (which might happen through an enhancement to that resource resolving a false negative, or a defect causing a false negative). When the repository file path trigger is used by itself, this sort of external breakage is only revealed when an unrelated change triggers the workflow. That can be distracting even to a dedicated member of the project development team, as well as confusing and discouraging to any contributor. This type of change can be caught by adding a `schedule` event trigger that causes the workflow to run periodically in addition to the other on-demand triggers. This allows the problem to be identified and resolved at the maintainer's convenience, separate from the unrelated development work.
1 parent 0d9d4a9 commit e71e470

31 files changed

+93
-0
lines changed

Diff for: .github/workflows/check-ci-sync.yml

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ on:
1818
- ".github/workflows/*.ya?ml"
1919
- "Taskfile.ya?ml"
2020
- "workflow-templates/*.ya?ml"
21+
schedule:
22+
# Run periodically to catch breakage caused by external changes.
23+
- cron: "0 13 * * WED"
2124
workflow_dispatch:
2225
repository_dispatch:
2326

Diff for: .github/workflows/check-community-health-sync.yml

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020
- "Taskfile.ya?ml"
2121
- ".github/ISSUE_TEMPLATE/**"
2222
- "issue-templates/**"
23+
schedule:
24+
# Run periodically to catch breakage caused by external changes.
25+
- cron: "0 14 * * WED"
2326
workflow_dispatch:
2427
repository_dispatch:
2528

Diff for: .github/workflows/check-config-sync.yml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ name: Check Configuration Files Sync
1010
on:
1111
push:
1212
pull_request:
13+
schedule:
14+
# Run periodically to catch breakage caused by external changes.
15+
- cron: "0 15 * * WED"
1316
workflow_dispatch:
1417
repository_dispatch:
1518

Diff for: .github/workflows/check-dependabot-sync.yml

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
- "Taskfile.yml"
2020
- "workflow-templates/*.ya?ml"
2121
- "workflow-templates/dependabot/workflow-template-copies/.github/workflows/*"
22+
schedule:
23+
# Run periodically to catch breakage caused by external changes.
24+
- cron: "0 16 * * WED"
2225

2326
jobs:
2427
check-sync:

Diff for: .github/workflows/check-license.yml

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ on:
2626
- "[lL][iI][cC][eE][nN][cCsS][eE]*"
2727
- "[oO][fF][lL]*"
2828
- "[pP][aA][tT][eE][nN][tT][sS]*"
29+
schedule:
30+
# Run periodically to catch breakage caused by external changes.
31+
- cron: "0 6 * * WED"
2932
workflow_dispatch:
3033
repository_dispatch:
3134

Diff for: .github/workflows/check-prettier-formatting-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ on:
195195
- "**.rviz"
196196
- "**.sublime-syntax"
197197
- "**.syntax"
198+
schedule:
199+
# Run periodically to catch breakage caused by external changes.
200+
- cron: "0 4 * * WED"
198201
workflow_dispatch:
199202
repository_dispatch:
200203

Diff for: .github/workflows/check-python-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on:
2727
- "Taskfile.ya?ml"
2828
- "**/tox.ini"
2929
- "**.py"
30+
schedule:
31+
# Run periodically to catch breakage caused by external changes.
32+
- cron: "0 8 * * WED"
3033
workflow_dispatch:
3134
repository_dispatch:
3235

Diff for: .github/workflows/check-yaml-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ on:
3939
- "**.rviz"
4040
- "**.sublime-syntax"
4141
- "**.syntax"
42+
schedule:
43+
# Run periodically to catch breakage caused by external changes.
44+
- cron: "0 9 * * WED"
4245
workflow_dispatch:
4346
repository_dispatch:
4447

Diff for: .github/workflows/test-python-poetry-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ on:
2424
- "pyproject.toml"
2525
- "tests/**"
2626
- "**.py"
27+
schedule:
28+
# Run periodically to catch breakage caused by external changes.
29+
- cron: "0 12 * * WED"
2730
workflow_dispatch:
2831
repository_dispatch:
2932

Diff for: workflow-templates/check-go-dependencies-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on:
2727
- "**/.gitmodules"
2828
- "**/go.mod"
2929
- "**/go.sum"
30+
schedule:
31+
# Run periodically to catch breakage caused by external changes.
32+
- cron: "0 8 * * WED"
3033
workflow_dispatch:
3134
repository_dispatch:
3235

Diff for: workflow-templates/check-go-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ on:
2222
- "**/go.mod"
2323
- "**/go.sum"
2424
- "**.go"
25+
schedule:
26+
# Run periodically to catch breakage caused by external changes.
27+
- cron: "0 7 * * WED"
2528
workflow_dispatch:
2629
repository_dispatch:
2730

Diff for: workflow-templates/check-license.yml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on:
2727
- "[lL][iI][cC][eE][nN][cCsS][eE]*"
2828
- "[oO][fF][lL]*"
2929
- "[pP][aA][tT][eE][nN][tT][sS]*"
30+
schedule:
31+
# Run periodically to catch breakage caused by external changes.
32+
- cron: "0 6 * * WED"
3033
workflow_dispatch:
3134
repository_dispatch:
3235

Diff for: workflow-templates/check-mkdocs-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ on:
2323
- "poetry.lock"
2424
- "pyproject.toml"
2525
- "docs/**"
26+
schedule:
27+
# Run periodically to catch breakage caused by external changes.
28+
- cron: "0 5 * * WED"
2629
workflow_dispatch:
2730
repository_dispatch:
2831

Diff for: workflow-templates/check-prettier-formatting-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ on:
195195
- "**.rviz"
196196
- "**.sublime-syntax"
197197
- "**.syntax"
198+
schedule:
199+
# Run periodically to catch breakage caused by external changes.
200+
- cron: "0 4 * * WED"
198201
workflow_dispatch:
199202
repository_dispatch:
200203

Diff for: workflow-templates/check-python-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on:
2727
- "Taskfile.ya?ml"
2828
- "**/tox.ini"
2929
- "**.py"
30+
schedule:
31+
# Run periodically to catch breakage caused by external changes.
32+
- cron: "0 8 * * WED"
3033
workflow_dispatch:
3134
repository_dispatch:
3235

Diff for: workflow-templates/check-toc-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- ".github/workflows/check-toc-task.ya?ml"
1414
# TODO: Update this if ToC of any other files should be checked.
1515
- "README.md"
16+
schedule:
17+
# Run periodically to catch breakage caused by external changes.
18+
- cron: "0 3 * * WED"
1619
workflow_dispatch:
1720
repository_dispatch:
1821

Diff for: workflow-templates/check-yaml-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ on:
3939
- "**.rviz"
4040
- "**.sublime-syntax"
4141
- "**.syntax"
42+
schedule:
43+
# Run periodically to catch breakage caused by external changes.
44+
- cron: "0 9 * * WED"
4245
workflow_dispatch:
4346
repository_dispatch:
4447

Diff for: workflow-templates/dependabot/workflow-template-copies/.github/workflows/check-go-dependencies-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on:
2727
- "**/.gitmodules"
2828
- "**/go.mod"
2929
- "**/go.sum"
30+
schedule:
31+
# Run periodically to catch breakage caused by external changes.
32+
- cron: "0 8 * * WED"
3033
workflow_dispatch:
3134
repository_dispatch:
3235

Diff for: workflow-templates/dependabot/workflow-template-copies/.github/workflows/check-go-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ on:
2222
- "**/go.mod"
2323
- "**/go.sum"
2424
- "**.go"
25+
schedule:
26+
# Run periodically to catch breakage caused by external changes.
27+
- cron: "0 7 * * WED"
2528
workflow_dispatch:
2629
repository_dispatch:
2730

Diff for: workflow-templates/dependabot/workflow-template-copies/.github/workflows/check-license.yml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on:
2727
- "[lL][iI][cC][eE][nN][cCsS][eE]*"
2828
- "[oO][fF][lL]*"
2929
- "[pP][aA][tT][eE][nN][tT][sS]*"
30+
schedule:
31+
# Run periodically to catch breakage caused by external changes.
32+
- cron: "0 6 * * WED"
3033
workflow_dispatch:
3134
repository_dispatch:
3235

Diff for: workflow-templates/dependabot/workflow-template-copies/.github/workflows/check-mkdocs-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ on:
2323
- "poetry.lock"
2424
- "pyproject.toml"
2525
- "docs/**"
26+
schedule:
27+
# Run periodically to catch breakage caused by external changes.
28+
- cron: "0 5 * * WED"
2629
workflow_dispatch:
2730
repository_dispatch:
2831

Diff for: workflow-templates/dependabot/workflow-template-copies/.github/workflows/check-prettier-formatting-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ on:
195195
- "**.rviz"
196196
- "**.sublime-syntax"
197197
- "**.syntax"
198+
schedule:
199+
# Run periodically to catch breakage caused by external changes.
200+
- cron: "0 4 * * WED"
198201
workflow_dispatch:
199202
repository_dispatch:
200203

Diff for: workflow-templates/dependabot/workflow-template-copies/.github/workflows/check-python-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on:
2727
- "Taskfile.ya?ml"
2828
- "**/tox.ini"
2929
- "**.py"
30+
schedule:
31+
# Run periodically to catch breakage caused by external changes.
32+
- cron: "0 8 * * WED"
3033
workflow_dispatch:
3134
repository_dispatch:
3235

Diff for: workflow-templates/dependabot/workflow-template-copies/.github/workflows/check-toc-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- ".github/workflows/check-toc-task.ya?ml"
1414
# TODO: Update this if ToC of any other files should be checked.
1515
- "README.md"
16+
schedule:
17+
# Run periodically to catch breakage caused by external changes.
18+
- cron: "0 3 * * WED"
1619
workflow_dispatch:
1720
repository_dispatch:
1821

Diff for: workflow-templates/dependabot/workflow-template-copies/.github/workflows/check-yaml-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ on:
3939
- "**.rviz"
4040
- "**.sublime-syntax"
4141
- "**.syntax"
42+
schedule:
43+
# Run periodically to catch breakage caused by external changes.
44+
- cron: "0 9 * * WED"
4245
workflow_dispatch:
4346
repository_dispatch:
4447

Diff for: workflow-templates/dependabot/workflow-template-copies/.github/workflows/test-go-integration-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ on:
3030
- "poetry.lock"
3131
- "pyproject.toml"
3232
- "tests/**"
33+
schedule:
34+
# Run periodically to catch breakage caused by external changes.
35+
- cron: "0 10 * * WED"
3336
workflow_dispatch:
3437
repository_dispatch:
3538

Diff for: workflow-templates/dependabot/workflow-template-copies/.github/workflows/test-go-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ on:
2626
- "Taskfile.ya?ml"
2727
- "**.go"
2828
- "**/testdata/**"
29+
schedule:
30+
# Run periodically to catch breakage caused by external changes.
31+
- cron: "0 11 * * WED"
2932
workflow_dispatch:
3033
repository_dispatch:
3134

Diff for: workflow-templates/dependabot/workflow-template-copies/.github/workflows/test-python-poetry-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ on:
2424
- "pyproject.toml"
2525
- "tests/**"
2626
- "**.py"
27+
schedule:
28+
# Run periodically to catch breakage caused by external changes.
29+
- cron: "0 12 * * WED"
2730
workflow_dispatch:
2831
repository_dispatch:
2932

Diff for: workflow-templates/test-go-integration-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ on:
3030
- "poetry.lock"
3131
- "pyproject.toml"
3232
- "tests/**"
33+
schedule:
34+
# Run periodically to catch breakage caused by external changes.
35+
- cron: "0 10 * * WED"
3336
workflow_dispatch:
3437
repository_dispatch:
3538

Diff for: workflow-templates/test-go-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ on:
2626
- "Taskfile.ya?ml"
2727
- "**.go"
2828
- "**/testdata/**"
29+
schedule:
30+
# Run periodically to catch breakage caused by external changes.
31+
- cron: "0 11 * * WED"
2932
workflow_dispatch:
3033
repository_dispatch:
3134

Diff for: workflow-templates/test-python-poetry-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ on:
2424
- "pyproject.toml"
2525
- "tests/**"
2626
- "**.py"
27+
schedule:
28+
# Run periodically to catch breakage caused by external changes.
29+
- cron: "0 12 * * WED"
2730
workflow_dispatch:
2831
repository_dispatch:
2932

0 commit comments

Comments
 (0)