sync #1906
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: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 */12 * * *" | |
workflow_dispatch: | |
env: | |
ITS_IMDB_AUTH: ${{ secrets.IMDB_AUTH }} | |
ITS_IMDB_EMAIL: ${{ secrets.IMDB_EMAIL }} | |
ITS_IMDB_PASSWORD: ${{ secrets.IMDB_PASSWORD }} | |
ITS_IMDB_COOKIEATMAIN: ${{ secrets.IMDB_COOKIEATMAIN }} | |
ITS_IMDB_COOKIEUBIDMAIN: ${{ secrets.IMDB_COOKIEUBIDMAIN }} | |
ITS_IMDB_LISTS: ${{ secrets.IMDB_LISTS }} | |
ITS_IMDB_TRACE: ${{ secrets.IMDB_TRACE }} | |
ITS_IMDB_HEADLESS: true | |
ITS_SYNC_MODE: ${{ secrets.SYNC_MODE }} | |
ITS_SYNC_HISTORY: ${{ secrets.SYNC_HISTORY }} | |
ITS_SYNC_RATINGS: ${{ secrets.SYNC_RATINGS }} | |
ITS_SYNC_WATCHLIST: ${{ secrets.SYNC_WATCHLIST }} | |
ITS_SYNC_TIMEOUT: ${{ secrets.SYNC_TIMEOUT }} | |
ITS_TRAKT_CLIENTID: ${{ secrets.TRAKT_CLIENTID }} | |
ITS_TRAKT_CLIENTSECRET: ${{ secrets.TRAKT_CLIENTSECRET }} | |
ITS_TRAKT_EMAIL: ${{ secrets.TRAKT_EMAIL }} | |
ITS_TRAKT_PASSWORD: ${{ secrets.TRAKT_PASSWORD }} | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Google Chrome | |
run: | | |
wget --progress=dot:giga https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/1321438/chrome-linux.zip | |
unzip chrome-linux.zip -d "$HOME/.browser" | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.2 | |
- name: Build | |
run: make build | |
- name: Sync | |
run: make sync |