Skip to content

Commit c5cfe46

Browse files
committed
Add sponsors workflow
1 parent 3842b1f commit c5cfe46

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 master

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ Parse urls from css file
88
[![Code Coverage](https://qlty.sh/gh/website-scraper/projects/node-css-url-parser/coverage.svg)](https://qlty.sh/gh/website-scraper/projects/node-css-url-parser)
99
[![Maintainability](https://qlty.sh/gh/website-scraper/projects/node-css-url-parser/maintainability.svg)](https://qlty.sh/gh/website-scraper/projects/node-css-url-parser)
1010

11+
## Sponsors
12+
Maintenance of this project is made possible by all the [contributors](https://github.com/website-scraper/node-css-url-parser/graphs/contributors) and [sponsors](https://github.com/sponsors/s0ph1e).
13+
If you'd like to sponsor this project and have your avatar or company logo appear below [click here](https://github.com/sponsors/s0ph1e). 💖
14+
15+
<!-- sponsors --><!-- sponsors -->
16+
1117
## Installation
1218
```
1319
npm install css-url-parser

0 commit comments

Comments
 (0)