build(config): add browser path config field #2009
Workflow file for this run
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: | |
- browserpath | |
schedule: | |
- cron: "0 */12 * * *" | |
workflow_dispatch: | |
env: | |
ITS_IMDB_BROWSERPATH: ${{ github.workspace }}/chrome-linux/chrome | |
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-24.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- 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 | |
if test -f "$BROWSER_PATH"; then | |
echo "Google Chrome binary stored at $BROWSER_PATH" | |
else | |
echo "Google Chrome binary not found at $BROWSER_PATH" | |
exit 1 | |
fi | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.4 | |
- name: Build | |
run: make build | |
- name: Sync | |
run: make sync |