Skip to content

Commit 4847bd0

Browse files
committed
Add sponsors workflow
1 parent 5af4513 commit 4847bd0

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
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 master

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ Download the website to the local directory (including all css, images, js, etc.
1313

1414
**Note:** by default dynamic websites (where content is loaded by js) may be saved not correctly because `website-scraper` doesn't execute js, it only parses http responses for html and css files. If you need to download a dynamic website take a look at [website-scraper-puppeteer](https://github.com/website-scraper/website-scraper-puppeteer).
1515

16-
This module is an Open Source Software maintained by one developer in free time. If you want to thank the author of this module you can use [GitHub Sponsors](https://github.com/sponsors/s0ph1e) or [Patreon](https://www.patreon.com/s0ph1e).
16+
## Sponsors
17+
Maintenance of this project is made possible by all the [contributors](https://github.com/website-scraper/node-website-scraper/graphs/contributors) and [sponsors](https://github.com/sponsors/s0ph1e).
18+
If you'd like to sponsor this project and have your avatar or company logo appear below [click here](https://github.com/sponsors/s0ph1e). 💖
19+
20+
<!-- sponsors --><!-- sponsors -->
1721

1822
## Requirements
1923
* nodejs version >= 20.18.1

0 commit comments

Comments
 (0)