-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.09 KB
/
sync.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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"
- name: Install uv
run: pipx install uv
- name: Install dependencies
run: |
uv pip install --system --constraint requirements.txt '.'
- name: Sync watchlist
run: |
imdb-trakt-sync --verbose 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 watchlist
run: |
imdb-trakt-sync --verbose sync-ratings
env:
TRAKT_CLIENT_ID: ${{ secrets.TRAKT_CLIENT_ID }}
TRAKT_ACCESS_TOKEN: ${{ secrets.TRAKT_ACCESS_TOKEN }}
IMDB_RATINGS_URL: ${{ secrets.IMDB_RATINGS_URL }}