-
-
Notifications
You must be signed in to change notification settings - Fork 247
41 lines (34 loc) · 922 Bytes
/
sponsor.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: Update sponsors in README
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
push:
branches: [master]
jobs:
update-sponsors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set node
uses: actions/setup-node@v4
with:
node-version: 16.x
- run: npm install yarn --global
- run: yarn
- name: Update sponsors
run: npm run build
env:
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORS_TOKEN }}
SPONSORKIT_GITHUB_LOGIN: rrousselGit
SPONSORKIT_DIR: "./sponsorkit"
- run: ls
- run: ls sponsorkit
- name: Commit
uses: EndBug/add-and-commit@v9
with:
message: "chore: update sponsors.svg"
add: "./sponsorkit/sponsors.*"
default_author: github_actions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}