Repository navigation
Generate Sponsors #96
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: | |
| 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 |