forked from 19128785540/rxrw-daily_morning
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 743 Bytes
/
main.yml
File metadata and controls
32 lines (28 loc) · 743 Bytes
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
name: morning
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
send_message:
runs-on: ubuntu-latest
name: send morning to your girlfriend
steps:
- name: checkout
uses: actions/checkout@v3
with:
ref: master
- name: sender
uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- run: pip install -r ./requirements.txt && python ./main.py
env:
APP_ID: ${{ secrets.APP_ID }}
APP_SECRET: ${{ secrets.APP_SECRET }}
TEMPLATE_ID: ${{ secrets.TEMPLATE_ID }}
USER_ID: ${{ secrets.USER_ID }}
START_DATE: ${{ secrets.START_DATE }}
BIRTHDAY: ${{ secrets.BIRTHDAY }}
CITY: ${{ secrets.CITY }}