Skip to content

Fix Oshi no Ko TMDB mapping (#91) #280

Fix Oshi no Ko TMDB mapping (#91)

Fix Oshi no Ko TMDB mapping (#91) #280

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'LICENSE'
pull_request:
branches: [ main ]
paths-ignore:
- '.**'
- 'README.md'
- 'LICENSE'
env:
PYTHON_VERSION: "3.10"
jobs:
validate-mappings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Download schema
run: wget -O custom_mappings_schema.json https://raw.githubusercontent.com/RickDB/PlexAniSync/master/custom_mappings_schema.json
- name: Validate mappings
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python validate.py
sort-mappings:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Sort entries
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
python sort.py
- name: Commit changes from sorting
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Sort entries