Skip to content

Sync

Sync #4361

Workflow file for this run

name: Sync
on:
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
concurrency: sync
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
uv pip install --system --constraint requirements.txt '.'
- name: Load cache
uses: actions/cache@v4
with:
path: .cache/cache.pickle
key: cache-${{ github.run_id }}
restore-keys: |
cache-
- name: Sync
run: |
trakt-plex-sync
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/cache.pickle