Skip to content

fix(octodns): action ref needs #17

fix(octodns): action ref needs

fix(octodns): action ref needs #17

Workflow file for this run

---
name: Octodns
on:
push:
paths:
- octodns/**
- .github/workflows/octodns.yml
env:
SCALEWAY_SECRET_KEY: ${{ secrets.SCALEWAY_SECRET_KEY }}
jobs:
octodns-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install '.[octodns]'
- name: Validate octodns config
run: |
octodns-validate --config-file=./octodns/config.yaml
octodns-deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: [octodns-lint]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install '.[octodns]'
- name: Apply octodns config
run: |
octodns-sync --config-file=./octodns/config.yaml --doit