Skip to content

Commit bb5c4d5

Browse files
committed
chore: add sponsors ci
1 parent 388edc3 commit bb5c4d5

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/scheduled.yml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: scheduled
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 0 * * *"
7+
push:
8+
branches: [main]
9+
10+
jobs:
11+
sponsors:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: pnpm/action-setup@v3
15+
with:
16+
run_install: false
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
cache: "pnpm"
21+
node-version-file: ".nvmrc"
22+
23+
- name: Preinstallation steps
24+
shell: bash
25+
run: corepack enable
26+
27+
- name: Install dependencies
28+
shell: bash
29+
run: pnpm i --frozen-lockfile
30+
31+
- name: Update sponsors
32+
run: pnpm sponsors
33+
env:
34+
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORKIT_GITHUB_TOKEN }}
35+
SPONSORKIT_GITHUB_LOGIN: joe-bell
36+
SPONSORKIT_POLAR_TOKEN: ${{ secrets.SPONSORKIT_POLAR_TOKEN }}
37+
SPONSORKIT_POLAR_ORGANIZATION: cva
38+
39+
- name: Commit
40+
uses: EndBug/add-and-commit@v9
41+
with:
42+
author_name: GitHub Actions
43+
author_email: 41898282+github-actions[bot]@users.noreply.github.com
44+
message: "chore: update sponsors.svg [ci skip]"
45+
add: ".github/static/sponsorkit/sponsors.*"
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)