Skip to content

Worker

Worker #702

Workflow file for this run

name: Worker
on:
schedule:
- cron: '42 0,12 * * *'
jobs:
run-worker:
runs-on: ubuntu-latest
timeout-minutes: 5
env:
workdir: ./backend
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1.3
- name: Install dependencies
working-directory: ${{ env.workdir }}
run: dart pub get
- name: Run worker
working-directory: ${{ env.workdir }}
run: dart run --define=GH_OWNER=${{ secrets.GH_OWNER }} --define=GH_REPO=${{ secrets.GH_REPO }} --define=GH_TOKEN=${{ secrets.GH_TOKEN }} --define=FIREBASE_URL=${{ secrets.FIREBASE_URL }} --define=FIREBASE_SA_CREDS=${{ secrets.FIREBASE_SA_CREDS }} ./lib/worker/worker.dart