Skip to content

Commit

Permalink
Sync netbox on changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Aug 3, 2024
1 parent fff7d33 commit 17ca617
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
@@ -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 }}"

0 comments on commit 17ca617

Please sign in to comment.