Skip to content

Generate Sponsors

Generate Sponsors #96

Workflow file for this run

name: Generate Sponsors
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
sponsors:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Dependencies
run: npm install
- name: Generate Sponsors
run: npm run sponsors
env:
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit Files
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add public/sponsors
git diff --cached --quiet && exit 0
git commit -m "chore: update sponsors"
git push