From 50900cb771e85f1e8ab6cd745d41115401fd83d6 Mon Sep 17 00:00:00 2001 From: Jacob Bandes-Storch Date: Thu, 15 Aug 2024 13:43:39 -0700 Subject: [PATCH 1/3] Add repository_dispatch trigger --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e6d9ce19..ae0f19af 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,6 +5,9 @@ on: branches: - master - stable + + # Allow this workflow to be triggered on the master branch by an external system (such as the kaitai_struct repo's workflow) + repository_dispatch: jobs: build: From 020e0eed83e098457c325bd340c0d8dfc5d534b5 Mon Sep 17 00:00:00 2001 From: Jacob Bandes-Storch Date: Fri, 16 Aug 2024 12:41:28 -0700 Subject: [PATCH 2/3] Add explicit type --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ae0f19af..27215ead 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,6 +8,7 @@ on: # Allow this workflow to be triggered on the master branch by an external system (such as the kaitai_struct repo's workflow) repository_dispatch: + types: [rebuild] jobs: build: From 4ef8bbd87bbd93e77a222670ef29d5e71756e3dc Mon Sep 17 00:00:00 2001 From: Petr Pucil Date: Thu, 22 Aug 2024 22:11:19 +0200 Subject: [PATCH 3/3] .github/workflows/main.yml: extend code comment --- .github/workflows/main.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 27215ead..0cbc34ff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,10 +5,14 @@ on: branches: - master - stable - - # Allow this workflow to be triggered on the master branch by an external system (such as the kaitai_struct repo's workflow) + + # Allow this workflow to be run on the `master` branch when a webhook event + # called `repository_dispatch` is triggered. This is used from the CI workflow + # in https://github.com/kaitai-io/kaitai_struct to rebuild the devel Web IDE + # after a new version of KSC is published to npm. repository_dispatch: - types: [rebuild] + types: + - rebuild jobs: build: