-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 1.11 KB
/
hours-email-reminder.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Run Email Reminder on a CRON Schedule
on:
schedule:
- cron: "0 0 1 1 *" # Jan 1st
- cron: "0 0 1 6 *" # Jun 1st
workflow_dispatch:
jobs:
send-hours-email:
runs-on: ubuntu-latest
name: A job to run the email reminder cron twice a year
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run Email Reminder Action Step
uses: ./hours-email-reminder
id: hours-email
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
DATABASE_NAME: ${{ secrets.DATABASE_NAME }}
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/[email protected]