Skip to content

Commit dccef2b

Browse files
committed
Add manual events as "Spell Check" 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 a825b26 commit dccef2b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
name: Spell Check
22

3+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
34
on:
45
push:
56
pull_request:
67
schedule:
78
# Run every Tuesday at 8 AM UTC to catch new misspelling detections resulting from dictionary updates.
89
- cron: "0 8 * * TUE"
10+
workflow_dispatch:
11+
repository_dispatch:
912

1013
jobs:
1114
spellcheck:

0 commit comments

Comments
 (0)