Skip to content

Review Audit Collection #3

Review Audit Collection

Review Audit Collection #3

Workflow file for this run

name: Review Audit Collection
on:
schedule:
# Run nightly at 2 AM UTC
- cron: '0 2 * * *'
workflow_dispatch: # Allow manual trigger
jobs:
collect-reviews:
runs-on: ubuntu-latest
permissions:
contents: write
issues: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install PyGithub>=2.1.0
- name: Run audit script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python Scripts/audit_reviews.py
- name: Commit and push if changed
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add docs/audit/reviews.json
git diff --staged --quiet || (git commit -m "Auto-update audit reviews [skip ci]" && git push)