Skip to content

Commit 8d3193b

Browse files
committed
Add API trigger to "Check Certificates" workflow
The `repository_dispatch` event allows triggering workflows via the GitHub API. This might be useful for triggering an immediate check in multiple relevant repositories after an external change, or some automated process. Although we don't have any specific need for this event at the moment, the event has no impact on the workflow, so there is no reason against having it. It is the sort of thing that can end up being useful if it is already in consistently in place, but not worth setting up on demand, since the effort to set it up is greater than the effort to trigger all the workflows manually.
1 parent c387f5d commit 8d3193b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/check-certificates.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
name: Check Certificates
22

3+
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
34
on:
45
schedule:
56
# run every 10 hours
67
- cron: "0 */10 * * *"
7-
# workflow_dispatch event allows the workflow to be triggered manually.
8-
# This could be used to run an immediate check after updating certificate secrets.
9-
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch
108
workflow_dispatch:
9+
repository_dispatch:
1110

1211
env:
1312
# Begin notifications when there are less than this many days remaining before expiration

0 commit comments

Comments
 (0)