Sync #2703
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: 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@v5 | |
- 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 }} |