-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 952 Bytes
/
action.yml
File metadata and controls
43 lines (35 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
on:
push:
branches:
- main
jobs:
check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: npm i -g prettier
- name: Install uv
uses: astral-sh/setup-uv@v7
- run: uv python install
- run: uv sync
- run: prettier --check .
- name: validate config file
run: .venv/bin/octodns-validate --config-file production.yaml
env:
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
sync:
needs: check
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v7
- run: uv python install
- run: uv sync
- name: sync dns
run: .venv/bin/octodns-sync --config-file production.yaml --doit
env:
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}