Skip to content

⚒️ Update donors and commit #2

⚒️ Update donors and commit

⚒️ Update donors and commit #2

Workflow file for this run

# This workflow scrapes the latest show episodes and commits the new episode and data
# files to the repo.
name: ⚒️ Update donors and commit
on:
schedule:
- cron: '0 1,7 * * *' # At 01:00 and 07:00 UTC
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
jobs:
scrape:
runs-on: ubuntu-latest
if: github.repository_owner == 'qgis'
steps:
- name: '🛒 Checkout QGIS Website'
uses: actions/checkout@v6
with:
ref: main
path: ./qgis-website
- name: '🐍 Setup Python'
uses: actions/setup-python@v6
with:
python-version: '3.10'
architecture: 'x64'
cache: "pipenv"
- name: '🚸Install Python deps'
run: |
cd ./qgis-website
pip install pipenv && pipenv install -r REQUIREMENTS.txt && pipenv sync --bare
pipenv run pip freeze
- name: '⚙️ Update donors from Stripe and Payrexx'
env:
STRIPE_API_KEY: ${{ secrets.STRIPE_API_KEY }}
PAYREXX_INSTANCE: ${{ secrets.PAYREXX_INSTANCE }}
PAYREXX_API_SECRET: ${{ secrets.PAYREXX_API_SECRET }}
LIST_AS_DONOR_LABEL: ${{ secrets.LIST_AS_DONOR_LABEL }}
run: |
cd ./qgis-website
pipenv run ./scripts/update_donors.py
pipenv run ./scripts/update_payrexx_donors.py
- name: '✉️ Commit'
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: 'Donors updated and committed via a GitHub Action.'
repository: ./qgis-website
# push_options: --force