-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (64 loc) · 2.38 KB
/
remind.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Send reminder
on:
schedule:
- cron: '00 19 * * 4'
- cron: '00 17 * * 6'
- cron: '00 9 * * 0'
- cron: '00 13 * * 0'
- cron: '40 16 * * 0'
jobs:
reminder-meeting:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # ratchet:actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@7f80679172b057fc5e90d70d197929d454754a5a # ratchet:actions/setup-python@v2
with:
python-version: "3.10"
- uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed # ratchet:actions/cache@v2
name: Configure pip caching
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
run: |
pip install -r scripts/requirements.txt
pip install -r scripts/requirements-dev.txt
- name: Send message
env:
API_KEY: ${{ secrets.ZULIP_API_KEY }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ACCOUNT_SID: ${{ secrets.ACCOUNT_SID }}
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
run: python scripts/reminder.py
reminder-issues:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # ratchet:actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@7f80679172b057fc5e90d70d197929d454754a5a # ratchet:actions/setup-python@v2
with:
python-version: "3.10"
- uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed # ratchet:actions/cache@v2
name: Configure pip caching
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
run: |
pip install -r scripts/requirements.txt
pip install -r scripts/requirements-dev.txt
- name: Send message
env:
API_KEY: ${{ secrets.ZULIP_API_KEY }}
REMINDER_TYPE: "ISSUES"
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ACCOUNT_SID: ${{ secrets.ACCOUNT_SID }}
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
run: python scripts/reminder.py