forked from pingcap/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (24 loc) · 769 Bytes
/
bot.yaml
File metadata and controls
26 lines (24 loc) · 769 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
name: bot
on:
workflow_dispatch:
schedule:
- cron: "30 1 * * 1-5"
jobs:
pr_reminder:
if: github.repository == 'pingcap/docs'
runs-on: ubuntu-latest
steps:
- name: Run PR reminder
env:
WEBHOOK: ${{secrets.BOT_WEBHOOK_URL}}
run: |
wget https://raw.githubusercontent.com/pingcap/docs/master/scripts/pr_reminder.py;
pip3 install lxml;
python3 pr_reminder.py "$WEBHOOK"
- name: Run PR reminder by assignee
env:
WEBHOOK: ${{secrets.BOT_WEBHOOK_URL}}
run: |
wget https://raw.githubusercontent.com/pingcap/docs/master/scripts/pr_reminder_basedon_assignee.py;
pip3 install lxml;
python3 pr_reminder_basedon_assignee.py "$WEBHOOK"