Skip to content

Commit 2109b90

Browse files
committed
Add manual events as "Check Workflows" workflow triggers
The `workflow_dispatch` event allows triggering the workflow via the GitHub web interface. This makes it easy to trigger an immediate workflow run after some relevant external change. 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 aec1b39 commit 2109b90

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: .github/workflows/lint-config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Check Workflows
22

3+
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
34
on:
45
push:
56
paths:
@@ -14,6 +15,8 @@ on:
1415
schedule:
1516
# Run every Tuesday at 03:00 UTC to catch breakage caused by changes to the GitHub Actions workflow schema
1617
- cron: "0 8 * * TUE"
18+
workflow_dispatch:
19+
repository_dispatch:
1720

1821
jobs:
1922
lint:

0 commit comments

Comments
 (0)