chore: Adjust contributor SVG width, avatar margin, and image source … #9
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: | |
| 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: wow-actions/contributors-list@v1 | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| svgPath: CONTRIBUTORS.svg | |
| svgWidth: 1000 | |
| avatarSize: 72 | |
| avatarMargin: 53 | |
| userNameHeight: 20 | |
| noCommit: true | |
| includeBots: false | |
| excludeUsers: "github-actions web-flow dependabot claude" | |
| itemTemplate: | | |
| <g transform="translate({{ x }}, {{ y }})"> | |
| <a xlink:href="{{{ url }}}" class="contributor-link" target="_blank" rel="nofollow sponsored" title="{{{ name }}}"> | |
| <clipPath id="cp-{{ name }}"> | |
| <circle cx="36" cy="36" r="36" /> | |
| </clipPath> | |
| <image width="72" height="72" xlink:href="{{{ avatar }}}" clip-path="url(#cp-{{ name }})" /> | |
| <text x="36" y="86" text-anchor="middle" alignment-baseline="middle" font-size="10" fill="#666" font-family="-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif">{{{ name }}}</text> | |
| </a> | |
| </g> | |
| - name: Commit & Push | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "chore: update contributors [skip ci]" | |
| file_pattern: CONTRIBUTORS.svg |