Skip to content

Commit

Permalink
add env vars in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SpasovskiFilip committed Aug 16, 2024
1 parent b04aa20 commit 551f405
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pylint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 551f405

Please sign in to comment.