Skip to content

Update Donors

Update Donors #1599

Workflow file for this run

name: Update Donors
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
update-donors:
if: github.repository_owner == 'cpeditor'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
- run: pip install requests
- name: Update donors
run: python tools/getDonors.py ${{ secrets.GITHUB_TOKEN }}
- name: Check diff
id: diff
run: |
diff=0
git diff --exit-code HEAD || diff=1
echo "diff=$diff" >> "$GITHUB_OUTPUT"
- name: Create Pull Request
if: steps.diff.outputs.diff == 1
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.BOT_TOKEN }}
commit-message: "chore: update donor list"
title: "chore: update donor list"
branch: "auto-pr/donors"
author: "GitHub Action <action@github.com>"