Sync Datasources #37
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 Datasources | |
on: | |
workflow_dispatch: | |
schedule: | |
# every day 2am | |
- cron: '0 2 * * *' | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./apps/dashboard | |
env: | |
DATABASE_URL: '${{ secrets.DATABASE_URL }}' | |
REDIS_URL: '${{ secrets.REDIS_URL }}' | |
EMAIL_FROM: '${{ secrets.EMAIL_FROM }}' | |
EMAIL_SERVER: '${{ secrets.EMAIL_SERVER }}' | |
NEXT_PUBLIC_DASHBOARD_URL: '${{ secrets.NEXT_PUBLIC_DASHBOARD_URL }}' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: pnpm/[email protected] | |
- run: pnpm i --frozen-lockfile | |
- run: pnpm turbo run syncDatasources |