-
Notifications
You must be signed in to change notification settings - Fork 225
46 lines (37 loc) · 1.12 KB
/
docs-review-bot.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
name: 📖 Review Documentation Bot
on:
workflow_dispatch:
inputs:
dryRun:
description: 'Run the bot without sending notifications'
required: false
default: 'false'
schedule:
- cron: '0 8 * * 1'
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
DRY_RUN: false
jobs:
review-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Documentation Review Bot in dry run mode
if: github.event_name == 'workflow_dispatch' && github.event.inputs.dryRun == 'true'
env:
DRY_RUN: true
run: |
python bin/check-review-dates.py
- name: Run Documentation Review Bot in normal mode
if: github.event_name != 'workflow_dispatch' || github.event.inputs.dryRun != 'true'
run: |
python bin/check-review-dates.py