diff --git a/.github/workflows/pylint.yaml b/.github/workflows/pylint.yaml index bfd37b1..96d5863 100644 --- a/.github/workflows/pylint.yaml +++ b/.github/workflows/pylint.yaml @@ -4,6 +4,11 @@ on: workflow_dispatch: push: pull_request: + +env: + CF_ZONE_ID: ${{ secrets.CF_ZONE_ID }} + CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }} + DNS_RECORD_COMMENT_KEY: ${{ secrets.DNS_RECORD_COMMENT_KEY }} jobs: build: diff --git a/functions.py b/functions.py index e03cf81..5d52daa 100644 --- a/functions.py +++ b/functions.py @@ -514,9 +514,9 @@ def check_connectivity(): "CF_API_TOKEN Missing: You have to provide your Cloudflare API Token." ) return False - if DNS_RECORD_COMMENT_KEY is None and DOMAINS_FILE_PATH is None: + if DNS_RECORD_COMMENT_KEY is None and DOMAINS_FILE_PATH is None and DOMAINS is None: LOGGER.error( - "DNS_RECORD_COMMENT_KEY and DOMAINS_FILE_PATH are missing," + "DNS_RECORD_COMMENT_KEY and DOMAINS_FILE_PATH and DOMAINS are missing," + " don't know which domains to update" ) return False