Skip to content

Generate Sponsors list #2

Generate Sponsors list

Generate Sponsors list #2

Workflow file for this run

name: Generate Sponsors list
on:
workflow_dispatch:
schedule:
- cron: '31 6 * * *'
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v5
with:
# Required to allow push to master without the checks/PR
token: ${{ secrets.GH_PUSH_TOKEN }}
- name: Generate Sponsors 💖
uses: JamesIves/github-sponsors-readme-action@1a120c92d5067dafeaedb33916301fd61338883d # v1.5.6
with:
token: ${{ secrets.SOFIIA_SPONSORS_READ_TOKEN }}
file: 'README.md'
active-only: false
include-private: true
- name: Commit changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
# Check if there are any staged changes
if git diff --cached --quiet; then
echo "No changes to commit."
exit 0
fi
git commit -m "Update list of sponsors"
git push origin master