Skip to content

Commit fef6209

Browse files
committed
Add additional trigger events to CI workflows
Schedule event allows periodic checks for breakage caused by external changes. This is important both because it brings these issues to the developer's attention, and also so that breakage to the CI can be fixed before it causes contributors to have a bad experience from irrelevant failures of check on their PRs. The workflow_dispatch and repository_dispatch events allow manual triggering of the workflow. These can be useful when doing development and maintenance on the CI system, and do no harm when they are not needed, so it makes sense to add them.
1 parent bc73ba6 commit fef6209

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/compile-examples.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
- ".github/workflows/compile-examples.yml"
1212
- "examples/**"
1313
- "src/**"
14+
schedule:
15+
# Run every Tuesday at 8 AM UTC to catch breakage caused by changes to external resources (libraries, platforms).
16+
- cron: "0 8 * * TUE"
17+
workflow_dispatch:
18+
repository_dispatch:
1419

1520
jobs:
1621
build:

.github/workflows/spell-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
schedule:
77
# run every Tuesday at 3 AM UTC
88
- cron: "0 3 * * 2"
9+
workflow_dispatch:
10+
repository_dispatch:
911

1012
jobs:
1113
spellcheck:

0 commit comments

Comments
 (0)