Skip to content

Sync

Sync #2612

Workflow file for this run

name: Sync
on:
schedule:
- cron: "0 */12 * * *"
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Load cache
uses: actions/cache@v3
with:
path: cache.json
key: cache-${{ github.run_id }}
restore-keys: |
cache-
- name: Sync
run: |
python .
env:
PLEX_USERNAME: ${{ secrets.PLEX_USERNAME }}
PLEX_PASSWORD: ${{ secrets.PLEX_PASSWORD }}
PLEX_TOKEN: ${{ secrets.PLEX_TOKEN }}
PLEX_SERVER: ${{ secrets.PLEX_SERVER }}
TRAKT_CLIENT_ID: ${{ secrets.TRAKT_CLIENT_ID }}
TRAKT_ACCESS_TOKEN: ${{ secrets.TRAKT_ACCESS_TOKEN }}
CACHE_PATH: cache.json