37 lines
1.1 KiB
YAML
Vendored
37 lines
1.1 KiB
YAML
Vendored
name: Update Contributors
|
|
|
|
on:
|
|
push:
|
|
branches: [main, dev]
|
|
schedule:
|
|
- cron: "0 0 * * 0" # Every Sunday at midnight UTC
|
|
|
|
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: 1200
|
|
avatarMargin: 12
|
|
userNameHeight: 20
|
|
itemTemplate: |
|
|
<g transform="translate({{ x }}, {{ y }})">
|
|
<a xlink:href="{{{ url }}}" class="contributor-link" target="_blank" rel="nofollow sponsored" title="{{{ name }}}" id="{{{ name }}}">
|
|
<image width="{{ width }}" height="{{ height }}" xlink:href="{{{ avatar }}}" />
|
|
<text x="32" y="74" text-anchor="middle" alignment-baseline="middle" font-size="10">{{{ name }}}</text>
|
|
</a>
|
|
</g>
|