1
0
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:
per1234
2021-08-11 01:55:20 -07:00
parent a5ae9a22af
commit 60c38f547a

View File

@ -6,6 +6,7 @@ env:
# SPDX identifier: https://spdx.org/licenses/ # SPDX identifier: https://spdx.org/licenses/
EXPECTED_LICENSE_TYPE: CC0-1.0 EXPECTED_LICENSE_TYPE: CC0-1.0
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
on: on:
push: push:
paths: paths:
@ -25,6 +26,8 @@ on:
- "[lL][iI][cC][eE][nN][cCsS][eE]*" - "[lL][iI][cC][eE][nN][cCsS][eE]*"
- "[oO][fF][lL]*" - "[oO][fF][lL]*"
- "[pP][aA][tT][eE][nN][tT][sS]*" - "[pP][aA][tT][eE][nN][tT][sS]*"
workflow_dispatch:
repository_dispatch:
jobs: jobs:
check-license: check-license: