From a97e39d94af27ae23a9b1515515e5f8254f8a855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 3 Mar 2024 22:28:56 +0100 Subject: [PATCH] [docs] automatically trigger pages build on gdl-org/docs --- .github/workflows/pages_dispatch.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pages_dispatch.yml diff --git a/.github/workflows/pages_dispatch.yml b/.github/workflows/pages_dispatch.yml new file mode 100644 index 00000000..835c1400 --- /dev/null +++ b/.github/workflows/pages_dispatch.yml @@ -0,0 +1,23 @@ +name: Dispatch GitHub Pages Build + +on: + workflow_dispatch: + push: + branches: + - "master" + paths: + - "docs/**" + +jobs: + dispatch: + runs-on: ubuntu-latest + steps: + - name: dispatch + run: > + curl -L + -X POST + -H "Accept: application/vnd.github+json" + -H "Authorization: Bearer ${{ secrets.DISPATCH_TOKEN }}" + -H "X-GitHub-Api-Version: 2022-11-28" + https://api.github.com/repos/gdl-org/docs/actions/workflows/pages.yml/dispatches + -d '{"ref":"master"}'