Skip to content

ci(reviewBot): implement review bot in python to verify reviews #6

ci(reviewBot): implement review bot in python to verify reviews

ci(reviewBot): implement review bot in python to verify reviews #6

Workflow file for this run

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'
# TODO: Remove these two lines before merge
pull_request:
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
DRY_RUN: true
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 --log=INFO
- 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 --log=INFO