From 60c38f547a34fdb8da5ef679887bed202c9bea24 Mon Sep 17 00:00:00 2001 From: per1234 Date: Wed, 11 Aug 2021 01:55:20 -0700 Subject: [PATCH] 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. --- .github/workflows/check-license.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/check-license.yml b/.github/workflows/check-license.yml index ceaa55d8..5e61f67b 100644 --- a/.github/workflows/check-license.yml +++ b/.github/workflows/check-license.yml @@ -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: