From 17ca61746b5cdf48e4f505405d635b27a36286f0 Mon Sep 17 00:00:00 2001 From: Marcus Weiner Date: Sat, 3 Aug 2024 13:14:12 +0200 Subject: [PATCH] Sync netbox on changes --- .github/workflows/sync.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/sync.yaml diff --git a/.github/workflows/sync.yaml b/.github/workflows/sync.yaml new file mode 100644 index 0000000..883ae5e --- /dev/null +++ b/.github/workflows/sync.yaml @@ -0,0 +1,16 @@ +name: Netbox Sync +on: + push: + branches: [main] + +jobs: + trigger: + name: Trigger + runs-on: ubuntu-latest + env: + DATA_SOURCE_ID: "1" + steps: + - run: | + curl https://netbox.freifunk-duesseldorf.de/api/core/data-sources/${DATA_SOURCE_ID}/sync/ \ + -X POST \ + -H "Authorization: Token ${{ secrets.NETBOX_API_TOKEN }}"