Bug Triage Workflow #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bug Triage Workflow | |
on: | |
schedule: | |
# Run bug triage every Wednesday at 2:30 PM IST (9:00 AM UTC) | |
- cron: "0 9 * * 3" | |
workflow_dispatch: # for manual triggering of the workflow | |
jobs: | |
run-bug-triage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out 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 Bug Triage | |
env: | |
EMAIL_SENDER: ${{ secrets.EMAIL_SENDER }} | |
EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }} | |
GITHUB_TOKEN: ${{ github.token }} | |
MAINTAINERS: ${{ secrets.MAINTAINERS }} | |
REPO_CONFIG: ${{ secrets.REPO_CONFIG }} | |
run: | | |
python -m triager --bugs -c config.yaml --log --send-email |