From a0d49d996ac977964170c34dd3759301ea4f704c Mon Sep 17 00:00:00 2001 From: Joaquim Rocha Date: Fri, 16 Aug 2024 14:04:47 +0100 Subject: [PATCH] github: Add workflow to trigger website build on docs/ update Signed-off-by: Joaquim Rocha --- .github/workflows/trigger-website-build.yml | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/trigger-website-build.yml diff --git a/.github/workflows/trigger-website-build.yml b/.github/workflows/trigger-website-build.yml new file mode 100644 index 0000000000..a388757cef --- /dev/null +++ b/.github/workflows/trigger-website-build.yml @@ -0,0 +1,22 @@ +name: Trigger Headlamp website update + +# See https://github.com/headlamp-k8s/headlamp-website +on: + push: + paths: + - 'docs/**' + workflow_dispatch: + +permissions: + contents: read + +jobs: + trigger_flatpak_update: + name: Trigger Headlamp website update + runs-on: ubuntu-latest + steps: + - name: Trigger via gh + env: + GITHUB_TOKEN: ${{ secrets.KINVOLK_REPOS_TOKEN }} + run: | + gh api repos/flathub/io.kinvolk.Headlamp/dispatches --raw-field event_type=headlamp-docs-update