Send daily leads email #14
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: Send daily leads email | |
on: | |
workflow_dispatch: | |
schedule: | |
# every day 6am | |
- cron: '0 6 * * *' | |
jobs: | |
send: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./apps/dashboard | |
env: | |
DATABASE_URL: '${{ secrets.DATABASE_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 sendDailyLeads |