Generate Sponsors #89
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: Generate Sponsors | |
| on: | |
| # Run daily at 00:00 UTC | |
| schedule: | |
| - cron: "0 0 * * *" | |
| # Allow manual trigger | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| sponsors: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: "pnpm" | |
| cache-dependency-path: ".sponsorkit/pnpm-lock.yaml" | |
| - name: Install dependencies | |
| run: pnpm install | |
| working-directory: .sponsorkit | |
| - name: Generate sponsors | |
| run: pnpm run generate | |
| working-directory: .sponsorkit | |
| env: | |
| SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORKIT_GITHUB_TOKEN }} | |
| SPONSORKIT_OPENCOLLECTIVE_KEY: ${{ secrets.SPONSORKIT_OPENCOLLECTIVE_KEY }} | |
| - name: Create PR if changed | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| commit-message: "chore: update sponsors" | |
| branch: update-sponsors | |
| delete-branch: true | |
| title: "chore: update sponsors" | |
| body: "Automated sponsor image update" | |
| add-paths: public/sponsors/ |