Update Contributors #77
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: Update Contributors | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 0 * * 0' | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/FUNDING.yml' | |
| jobs: | |
| update-contributors: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Generate Contributors Images | |
| uses: jaywcjlove/github-action-contributors@main | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| filter-author: (renovate\[bot\]|renovate-bot|dependabot\[bot\]) | |
| output: CONTRIBUTORS.svg | |
| avatarSize: 42 | |
| - name: Generate Sponsors Section | |
| if: ${{ github.repository_owner == 'usekaneo' }} | |
| uses: JamesIves/github-sponsors-readme-action@v1 | |
| with: | |
| token: ${{ secrets.GH_ANDREJ }} | |
| file: 'README.md' | |
| minimum: 1 | |
| marker: sponsors | |
| - name: Sync Site Sponsors | |
| if: ${{ github.repository_owner == 'usekaneo' }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_ANDREJ }} | |
| run: node apps/site/scripts/sync-sponsors.mjs | |
| - name: Commit and Push Changes | |
| run: | | |
| git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git add CONTRIBUTORS.svg README.md apps/site/constants/sponsors.json | |
| git commit -m "docs: update contributors and sponsors" || exit 0 | |
| git push |