Two Weeks Reminder Email Task #147
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: Two Weeks Reminder Email Task | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
run-daily-task: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
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 daily task | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
WEBSITE_URL: ${{ secrets.WEBSITE_URL }} | |
run: node .github/workflows/scripts/fetchDataWeeks.js |