-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.04 KB
/
scheduler.yml
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
name: Scheduler
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
push:
branches: [main]
jobs:
update-sponsors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
- name: Install deps
run: pnpm i --frozen-lockfile
- name: Update sponsors
run: pnpm exec sponsorkit --dir .
env:
SPONSORKIT_GITHUB_LOGIN: sxzz
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORKIT_GITHUB_TOKEN }}
SPONSORKIT_AFDIAN_USER_ID: ${{ secrets.SPONSORKIT_AFDIAN_USER_ID }}
SPONSORKIT_AFDIAN_TOKEN: ${{ secrets.SPONSORKIT_AFDIAN_TOKEN }}
- name: Commit
uses: EndBug/add-and-commit@v9
with:
author_email: 41898282+github-actions[bot]@users.noreply.github.com
message: 'chore: update sponsors.svg [ci skip]'
add: 'sponsors.*'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}