-
Notifications
You must be signed in to change notification settings - Fork 8
34 lines (28 loc) · 845 Bytes
/
main.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
name: Scheduled Email
on:
workflow_dispatch: {}
schedule:
# Eg: Runs at 04:00 UTC every day.
- cron: '0 4 * * *'
jobs:
email:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
- name: Node LTS versions
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install Node.js dependencies
run: |
pnpm i --no-frozen-lockfile
- env:
SENDER_EMAIL: ${{ secrets.SENDER_EMAIL }}
SENDER_APP_PASSWORD: ${{ secrets.SENDER_APP_PASSWORD }}
RECEIVING_EMAIL: ${{ secrets.RECEIVING_EMAIL }}
NO_OF_HIGHLIGHTS: ${{ secrets.NO_OF_HIGHLIGHTS }}
run: pnpm run start