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 }}"