Update domains.py (#61) #57
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: Update DNS | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
make_doc: | |
name: Update DNS | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry install | |
- name: Update DNS | |
run: poetry run python -m dns.sync | |
env: | |
PORKBUN_API_KEY: ${{ secrets.PORKBUN_API_KEY }} | |
PORKBUN_API_SECRET: ${{ secrets.PORKBUN_API_SECRET }} |