Incremental sync of Azure resources to Port #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Incremental sync of Azure resources to Port" | |
on: | |
schedule: # run every 15 minutes | |
- cron: "*/15 * * * *" | |
jobs: | |
sync: | |
name: Incremental sync | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Checkout To Repository | |
uses: actions/checkout@v2 | |
with: | |
ref: main | |
repository: port-labs/incremental-sync | |
- name: Install dependencies with Poetry | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
make install | |
- name: Run incremental sync | |
run: make run | |
env: | |
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} | |
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }} | |
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | |
PORT_WEBHOOK_INGEST_URL: ${{ secrets.PORT_WEBHOOK_INGEST_URL }} | |
CHANGE_WINDOW_MINUTES: 15 |