Update Individual Sponsors #148
This file contains hidden or 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: Update Individual Sponsors | |
| on: | |
| schedule: | |
| # Daily at noon Eastern (4 PM UTC during EDT) | |
| - cron: "0 16 * * *" | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| update-and-pr: | |
| name: Update Individual Sponsors and PR | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Run Timestamp | |
| run: date | |
| - uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| - name: Install deps | |
| run: | | |
| # hack: https://github.com/astral-sh/uv/issues/1386#issuecomment-1947801083 | |
| pip install uv | |
| uv venv .venv | |
| echo "VIRTUAL_ENV=.venv" >> $GITHUB_ENV | |
| echo "$PWD/.venv/bin" >> $GITHUB_PATH | |
| uv pip install -r ./scripts/requirements.txt | |
| - name: Get Individual Sponsor Data | |
| run: ./scripts/sponsors.py get-individual-sponsors | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v3 | |
| with: | |
| commit-message: Update individual sponsor data | |
| title: Update Individual Sponsor Data | |
| author: PyOhio Automation <[email protected]> | |
| committer: PyOhio Automation <[email protected]> | |
| body: | | |
| This is an automatic individual sponsor data update from the PyOhio Admin API. | |
| - Review changes to ensure they are appropriate to publish. | |
| - If so, merge. | |
| - If not, update data in the PyOhio Admin and re-run this workflow. | |
| labels: | | |
| automated-pr | |
| individual-sponsors | |
| branch: automatic-updates-for-individual-sponsors | |
| delete-branch: true |