Skip to content

Commit 0d4c607

Browse files
committed
Add missing schedule triggers to workflows
This repository contains several GitHub Actions workflows to facilitate the development and maintenance of the project. 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 don't always fully pin dependencies. 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 of a dependency 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 66ff1ba commit 0d4c607

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

.github/workflows/check-mkdocs-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ on:
3434
- "docs/**"
3535
- "docsgen/**"
3636
- "**.go"
37+
schedule:
38+
# Run periodically to catch breakage caused by external changes.
39+
- cron: "0 5 * * WED"
3740
workflow_dispatch:
3841
repository_dispatch:
3942

.github/workflows/check-prettier-formatting-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ on:
200200
- "**.rviz"
201201
- "**.sublime-syntax"
202202
- "**.syntax"
203+
schedule:
204+
# Run periodically to catch breakage caused by external changes.
205+
- cron: "0 4 * * WED"
203206
workflow_dispatch:
204207
repository_dispatch:
205208

.github/workflows/test-go-task.yml

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ on:
3030
- "Taskfile.ya?ml"
3131
- "**.go"
3232
- "**/testdata/**"
33+
schedule:
34+
# Run periodically to catch breakage caused by external changes.
35+
- cron: "0 11 * * WED"
3336
workflow_dispatch:
3437
repository_dispatch:
3538

0 commit comments

Comments
 (0)