-
-
Notifications
You must be signed in to change notification settings - Fork 183
81 lines (72 loc) · 3.4 KB
/
Copy pathsponsors.yml
File metadata and controls
81 lines (72 loc) · 3.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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> '
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> '
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> '
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> '
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> '
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