Fixing cf update script

This commit is contained in:
Florian Weber 2025-03-02 23:36:09 +01:00
parent 5223550529
commit eea447a2c5
2 changed files with 10 additions and 4 deletions

View File

@ -13,14 +13,20 @@ jobs:
update-dns: update-dns:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Repository - name: Set up Python Virtual Environment
uses: actions/checkout@v4 run: |
python3 -m venv venv
source venv/bin/activate
- name: Install Dependencies - name: Install Dependencies
run: pip install pyyaml requests run: |
source venv/bin/activate
pip install pyyaml requests
- name: Update Cloudflare DNS - name: Update Cloudflare DNS
env: env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }} CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
run: python update_cloudflare_dns.py run: |
source venv/bin/activate
python update_cloudflare_dns.py