-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.32 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
44
45
46
47
48
49
50
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 }}