add Shaman King #268
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |