Skip to content

Send Email on Stage Change #1518

Send Email on Stage Change

Send Email on Stage Change #1518

Workflow file for this run

name: Send Email on Stage Change
on:
schedule:
- cron: '*/5 * * * *' # Runs every 5 minutes
jobs:
send_email:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Run email script
run: node sendEmailOnStageChange.js
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
EMAIL_USER: ${{ secrets.EMAIL_USER }}
EMAIL_PASS: ${{ secrets.EMAIL_PASS }}