Run Email Notification on a CRON Schedule #125
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: Run Email Notification on a CRON Schedule | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
jobs: | |
run_email_notification: | |
runs-on: ubuntu-latest | |
name: A job to run the email notification cron | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run Email Notification Action Step | |
uses: ./email-notification | |
id: email-notification | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
JUNO_API_KEY: ${{ secrets.JUNO_API_KEY }} | |
JUNO_BASE_URL: ${{ secrets.JUNO_BASE_URL }} | |
JUNO_SENDER_EMAIL: ${{ secrets.JUNO_SENDER_EMAIL }} | |
JUNO_SENDER_NAME: ${{ secrets.JUNO_SENDER_NAME }} | |
keepalive-job: | |
name: Keepalive Workflow | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gautamkrishnar/keepalive-workflow@2.0.7 |