mirror of
https://github.com/rrousselGit/freezed.git
synced 2025-08-06 15:11:55 +08:00
37 lines
791 B
YAML
37 lines
791 B
YAML
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@v2
|
|
|
|
- name: Set node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 16.x
|
|
|
|
- run: npx pnpm i
|
|
|
|
- name: Update sponsors
|
|
run: npm run build
|
|
env:
|
|
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORS_TOKEN }}
|
|
SPONSORKIT_GITHUB_LOGIN: rrousselGit
|
|
SPONSORKIT_DIR: "./sponsorkit"
|
|
|
|
- name: Commit
|
|
uses: EndBug/add-and-commit@v4
|
|
with:
|
|
message: "chore: update sponsors.svg"
|
|
add: "sponsors.*"
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|