Update sponsors in README #48
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 sponsors in README | |
| on: | |
| schedule: | |
| - cron: '0 6 * * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| sponsors: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Update Premier Sponsors tier ($500+) | |
| uses: JamesIves/github-sponsors-readme-action@2fd9142e765f755780202122261dc85e78459405 | |
| with: | |
| token: ${{ secrets.SPONSORS_PAT }} | |
| file: 'README.md' | |
| marker: 'sponsors-premier' | |
| minimum: 50000 | |
| template: '<a href="https://github.com/{{{ login }}}" target="_blank" rel="noopener"><img src="{{{ avatarUrl }}}" width="180" alt="{{{ login }}}" /></a> ' | |
| 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@2fd9142e765f755780202122261dc85e78459405 | |
| 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> ' | |
| fallback: '<sub>Become the first <a href="https://github.com/sponsors/romainsimon">Sponsor</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 |