This repository has been archived on 2025-05-15. You can view files and clone it, but cannot push or open issues or pull requests.
morlana-pages/.gitea/workflows/01-update-dns.yml
Florian ec0dc1bb4f
Some checks failed
Update Cloudflare DNS / update-dns (push) Failing after 22s
Deploy Jekyll site to Pages / build (push) Has been cancelled
Option to manually execute dns update
2025-03-02 23:41:25 +01:00

35 lines
752 B
YAML

name: Update Cloudflare DNS
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: "cloudflare"
cancel-in-progress: false
jobs:
update-dns:
runs-on: ubuntu-latest
steps:
- name: Set up Python Virtual Environment
run: |
python3 -m venv venv
source venv/bin/activate
- name: Install Dependencies
run: |
source venv/bin/activate
pip install pyyaml requests
- name: Update Cloudflare DNS
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
run: |
source venv/bin/activate
python update_cloudflare_dns.py