From eea447a2c57b00cd711e3b63c898a3c9cb31b188 Mon Sep 17 00:00:00 2001 From: Florian Date: Sun, 2 Mar 2025 23:36:09 +0100 Subject: [PATCH] Fixing cf update script --- .gitea/workflows/update-dns.yml | 14 ++++++++++---- update_cloudflare.py => update_cloudflare_dns.py | 0 2 files changed, 10 insertions(+), 4 deletions(-) rename update_cloudflare.py => update_cloudflare_dns.py (100%) diff --git a/.gitea/workflows/update-dns.yml b/.gitea/workflows/update-dns.yml index 74d845d..b7ac8d5 100644 --- a/.gitea/workflows/update-dns.yml +++ b/.gitea/workflows/update-dns.yml @@ -13,14 +13,20 @@ jobs: update-dns: runs-on: ubuntu-latest steps: - - name: Checkout Repository - uses: actions/checkout@v4 + - name: Set up Python Virtual Environment + run: | + python3 -m venv venv + source venv/bin/activate - name: Install Dependencies - run: pip install pyyaml requests + 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: python update_cloudflare_dns.py + run: | + source venv/bin/activate + python update_cloudflare_dns.py diff --git a/update_cloudflare.py b/update_cloudflare_dns.py similarity index 100% rename from update_cloudflare.py rename to update_cloudflare_dns.py