Skip to content

Commit

Permalink
Add protections
Browse files Browse the repository at this point in the history
  • Loading branch information
evie-lau committed Oct 7, 2024
1 parent 7b54c0c commit e3bc7d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/validate-seasons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,21 @@ on:
- master
paths:
- "custom_mappings.yaml"
- "validate-tvdb.py"
- "*.py"
env:
PYTHON_VERSION: "3.10"
jobs:
validate-added-mappings:
runs-on: ubuntu-latest
steps:
# TODO: maybe make this step a pre-requisite to any CI flow
- name: Prevent file change
uses: xalvarez/prevent-file-change-action@v1
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
pattern: *.py
trustedAuthors: evie-lau
allowNewFiles: false
- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion validate-tvdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pathlib import Path

# Load API Key and initialize tvdb
load_dotenv(Path(".env"))
load_dotenv()
apikey = os.getenv("TVDB_API_KEY")
tvdb = tvdb_v4_official.TVDB(apikey)

Expand Down

0 comments on commit e3bc7d6

Please sign in to comment.