Skip to content

Sync

Sync #2625

Workflow file for this run

name: Sync
on:
schedule:
- cron: "0 16-23,0-7 * * *"
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
concurrency: sync
steps:
- name: Checkout main branch
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- uses: astral-sh/setup-uv@v4
- name: Install dependencies
run: |
uv pip install --system --constraint requirements.txt '.'
- name: Sync watchlist
run: |
imdb-trakt-sync sync-watchlist
env:
TRAKT_CLIENT_ID: ${{ secrets.TRAKT_CLIENT_ID }}
TRAKT_ACCESS_TOKEN: ${{ secrets.TRAKT_ACCESS_TOKEN }}
IMDB_WATCHLIST_URL: ${{ secrets.IMDB_WATCHLIST_URL }}
- name: Sync ratings
run: |
imdb-trakt-sync sync-ratings
env:
TRAKT_CLIENT_ID: ${{ secrets.TRAKT_CLIENT_ID }}
TRAKT_ACCESS_TOKEN: ${{ secrets.TRAKT_ACCESS_TOKEN }}
IMDB_RATINGS_URL: ${{ secrets.IMDB_RATINGS_URL }}
- name: Sync history
run: |
imdb-trakt-sync sync-history
env:
TRAKT_CLIENT_ID: ${{ secrets.TRAKT_CLIENT_ID }}
TRAKT_ACCESS_TOKEN: ${{ secrets.TRAKT_ACCESS_TOKEN }}
IMDB_RATINGS_URL: ${{ secrets.IMDB_RATINGS_URL }}