You've already forked library-registry
mirror of
https://github.com/arduino/library-registry.git
synced 2025-07-07 14:41:10 +03:00
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.
This commit is contained in:
3
.github/workflows/check-license.yml
vendored
3
.github/workflows/check-license.yml
vendored
@ -6,6 +6,7 @@ env:
|
||||
# SPDX identifier: https://spdx.org/licenses/
|
||||
EXPECTED_LICENSE_TYPE: CC0-1.0
|
||||
|
||||
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
@ -25,6 +26,8 @@ on:
|
||||
- "[lL][iI][cC][eE][nN][cCsS][eE]*"
|
||||
- "[oO][fF][lL]*"
|
||||
- "[pP][aA][tT][eE][nN][tT][sS]*"
|
||||
workflow_dispatch:
|
||||
repository_dispatch:
|
||||
|
||||
jobs:
|
||||
check-license:
|
||||
|
Reference in New Issue
Block a user