Skip to content

sync

sync #85

Workflow file for this run

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