Skip to content

Update sponsors in README #42

Update sponsors in README

Update sponsors in README #42

Workflow file for this run

name: Update sponsors in README
on:
schedule:
- cron: '0 6 * * *' # daily at 06:00 UTC
workflow_dispatch:
permissions:
contents: write
jobs:
sponsors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update Founding Sponsors tier ($2000+)
uses: JamesIves/github-sponsors-readme-action@v1
with:
token: ${{ secrets.SPONSORS_PAT }}
file: 'README.md'
marker: 'sponsors-founding'
minimum: 200000
template: '<a href="https://github.com/{{{ login }}}" target="_blank" rel="noopener"><img src="{{{ avatarUrl }}}" width="200" alt="{{{ login }}}" /></a>&nbsp;&nbsp;'
fallback: '<sub>Become the first <a href="https://github.com/sponsors/romainsimon">Founding Sponsor</a>.</sub>'
- name: Update Premier Sponsors tier ($500-$1999)
uses: JamesIves/github-sponsors-readme-action@v1
with:
token: ${{ secrets.SPONSORS_PAT }}
file: 'README.md'
marker: 'sponsors-premier'
minimum: 50000
maximum: 199999
template: '<a href="https://github.com/{{{ login }}}" target="_blank" rel="noopener"><img src="{{{ avatarUrl }}}" width="160" alt="{{{ login }}}" /></a>&nbsp;&nbsp;'
fallback: '<sub>Become the first <a href="https://github.com/sponsors/romainsimon">Premier Sponsor</a>.</sub>'
- name: Update Sponsors tier ($100-$499)
uses: JamesIves/github-sponsors-readme-action@v1
with:
token: ${{ secrets.SPONSORS_PAT }}
file: 'README.md'
marker: 'sponsors-sponsor'
minimum: 10000
maximum: 49999
template: '<a href="https://github.com/{{{ login }}}" target="_blank" rel="noopener"><img src="{{{ avatarUrl }}}" width="100" alt="{{{ login }}}" /></a>&nbsp;&nbsp;'
fallback: '<sub>Become the first <a href="https://github.com/sponsors/romainsimon">Sponsor</a>.</sub>'
- name: Update Backers tier ($25-$99)
uses: JamesIves/github-sponsors-readme-action@v1
with:
token: ${{ secrets.SPONSORS_PAT }}
file: 'README.md'
marker: 'sponsors-backer'
minimum: 2500
maximum: 9999
template: '<a href="https://github.com/{{{ login }}}" target="_blank" rel="noopener"><img src="{{{ avatarUrl }}}" width="60" alt="{{{ login }}}" /></a>&nbsp;'
fallback: '<sub>Become the first <a href="https://github.com/sponsors/romainsimon">Backer</a>.</sub>'
- name: Update Supporters tier ($5-$24)
uses: JamesIves/github-sponsors-readme-action@v1
with:
token: ${{ secrets.SPONSORS_PAT }}
file: 'README.md'
marker: 'sponsors-supporter'
minimum: 500
maximum: 2499
template: '<a href="https://github.com/{{{ login }}}" target="_blank" rel="noopener"><img src="{{{ avatarUrl }}}" width="40" alt="{{{ login }}}" /></a>&nbsp;'
fallback: '<sub>Become the first <a href="https://github.com/sponsors/romainsimon">Supporter</a>.</sub>'
- name: Commit changes
run: |
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
if git diff --quiet -- README.md; then
echo "No changes to README.md."
exit 0
fi
git add README.md
git commit -m "chore(sponsors): refresh README"
git push