Skip to content

Commit f5aa02d

Browse files
committed
Add manual events as "Check License" 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 a6ef28a commit f5aa02d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/check-license.yml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ env:
55
# SPDX identifier: https://spdx.org/licenses/
66
EXPECTED_LICENSE_TYPE: GPL-3.0
77

8+
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
89
on:
910
push:
1011
paths:
@@ -23,6 +24,8 @@ on:
2324
- "[lL][iI][cC][eE][nN][cCsS][eE]*"
2425
- "[oO][fF][lL]*"
2526
- "[pP][aA][tT][eE][nN][tT][sS]*"
27+
workflow_dispatch:
28+
repository_dispatch:
2629

2730
jobs:
2831
check-license:

0 commit comments

Comments
 (0)