Skip to content

Update Contributors #968

Update Contributors

Update Contributors #968

name: Update Contributors
on:
# Every day at 2:30am
schedule:
- cron: "30 2 * * *"
# Manual trigger
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: pip
cache-dependency-path: '**/requirements.txt'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Update list
run: python scripts/update_contributors.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4.12.0
with:
commit_message: Update Contributors
file_pattern: CONTRIBUTORS.md .github/contributors.json