Skip to content

Commit 5b43b51

Browse files
committed
Add sponsors workflow
1 parent c507db0 commit 5b43b51

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/workflows/sponsors.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Generate Sponsors list
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '31 6 * * *'
6+
permissions:
7+
contents: write
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout 🛎️
13+
uses: actions/checkout@v5
14+
with:
15+
# Required to allow push to master without the checks/PR
16+
token: ${{ secrets.GH_PUSH_TOKEN }}
17+
18+
- name: Generate Sponsors 💖
19+
uses: JamesIves/github-sponsors-readme-action@1a120c92d5067dafeaedb33916301fd61338883d # v1.5.6
20+
with:
21+
token: ${{ secrets.SOFIIA_SPONSORS_READ_TOKEN }}
22+
file: 'README.md'
23+
active-only: false
24+
include-private: true
25+
26+
- name: Commit changes
27+
run: |
28+
git config --global user.name "github-actions[bot]"
29+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
30+
git add README.md
31+
32+
# Check if there are any staged changes
33+
if git diff --cached --quiet; then
34+
echo "No changes to commit."
35+
exit 0
36+
fi
37+
38+
git commit -m "Update list of sponsors"
39+
git push origin main

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ To solve this issue, `website-scraper-puppeteer` is now depends on `@website-scr
1212

1313
This module automatically updates its Puppeteer dependency using Dependabot and continuous integration. When tests pass, a new minor version is published to NPM, keeping compatibility up-to-date without manual intervention.
1414

15+
## Sponsors
16+
Maintenance of this project is made possible by all the [contributors](https://github.com/website-scraper/puppeteer-version-wrapper/graphs/contributors) and [sponsors](https://github.com/sponsors/s0ph1e).
17+
If you'd like to sponsor this project and have your avatar or company logo appear below [click here](https://github.com/sponsors/s0ph1e). 💖
18+
19+
<!-- sponsors --><!-- sponsors -->
20+
1521
## How It Works
1622

1723
- Monitors Puppeteer releases via Dependabot

0 commit comments

Comments
 (0)