name: Update Contributors on: push: branches: [main, dev] workflow_dispatch: schedule: - cron: "0 0 * * 0" # Every Sunday at midnight UTC concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: update-contributors: runs-on: ubuntu-latest permissions: contents: write pull-requests: write steps: - name: Checkout uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 - name: Generate contributors SVG uses: tw93/contributors-list@master with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} svgPath: CONTRIBUTORS.svg svgWidth: 1000 avatarSize: 72 avatarMargin: 45 userNameHeight: 20 noFetch: false noCommit: true truncate: 0 includeBots: false excludeUsers: "github-actions web-flow dependabot claude" itemTemplate: | {{{ name }}} - name: Commit & Push uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "chore: update contributors [skip ci]" file_pattern: CONTRIBUTORS.svg commit_user_name: github-actions[bot] commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> push_options: '--force'