-
-
Notifications
You must be signed in to change notification settings - Fork 233
32 lines (32 loc) · 864 Bytes
/
sync.yaml
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
name: sync
on:
push:
branches:
- main
schedule:
- cron: "0 */3 * * *"
workflow_dispatch:
env:
IMDB_COOKIE_AT_MAIN: ${{ secrets.IMDB_COOKIE_AT_MAIN }}
IMDB_COOKIE_UBID_MAIN: ${{ secrets.IMDB_COOKIE_UBID_MAIN }}
IMDB_LIST_IDS: ${{ secrets.IMDB_LIST_IDS }}
SKIP_HISTORY: ${{ secrets.SKIP_HISTORY }}
SYNC_MODE: ${{ secrets.SYNC_MODE }}
TRAKT_CLIENT_ID: ${{ secrets.TRAKT_CLIENT_ID }}
TRAKT_CLIENT_SECRET: ${{ secrets.TRAKT_CLIENT_SECRET }}
TRAKT_EMAIL: ${{ secrets.TRAKT_EMAIL }}
TRAKT_PASSWORD: ${{ secrets.TRAKT_PASSWORD }}
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Build
run: make build
- name: Sync
run: ./build/syncer