From fb9459bc83cb32ef77bb31cef8869386ccd2486c Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Thu, 20 Feb 2025 12:12:11 +0800 Subject: [PATCH] ci: dispatch events when openapi.json changes --- .github/workflows/dispatch.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/dispatch.yml diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml new file mode 100644 index 000000000..adf641525 --- /dev/null +++ b/.github/workflows/dispatch.yml @@ -0,0 +1,18 @@ +name: Dispatch events + +on: + push: + branches: [ master ] + paths: + - '**/openapi.json' + +jobs: + dispatch: + runs-on: ubuntu-latest + steps: + - name: Repository Dispatch + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.REPO_ACCESS_TOKEN }} + repository: gotson/komga-website + event-type: openapi