From 2956244a2aa0e341da691dd8db8b7d84854798a5 Mon Sep 17 00:00:00 2001
From: John Kapantzakis <kapantzak@gmail.com>
Date: Wed, 11 Dec 2024 17:14:19 +0200
Subject: [PATCH] Add GitHub workflow (#18128)

* Add workflow that dispatched website update

* Fix typo

* Change step name

* Added concurrency, repo conditional and changed github token

* Avoid using curl
---
 .github/workflows/update-website.yml | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 .github/workflows/update-website.yml

diff --git a/.github/workflows/update-website.yml b/.github/workflows/update-website.yml
new file mode 100644
index 0000000000..a05b73e7e9
--- /dev/null
+++ b/.github/workflows/update-website.yml
@@ -0,0 +1,22 @@
+name: Update website
+on:
+  push:
+    branches:
+      - master
+    paths:
+      - "integrations/integrations.json"
+concurrency:
+  group: website-trigger-${{ github.ref }}
+  cancel-in-progress: true
+jobs:
+  trigger:
+    runs-on: ubuntu-latest
+    if: github.repository == 'netdata/netdata'
+    steps:
+      - name: Trigger netdata/website update-integrations workflow
+        uses: benc-uk/workflow-dispatch@v1
+        with:
+          token: ${{ secrets.NETDATABOT_GITHUB_TOKEN }}
+          repo: netdata/website
+          workflow: Update integrations
+          ref: refs/heads/master