Skip to content

Sponsor Generator

Sponsor Generator #575

Workflow file for this run

name: Sponsor Generator
on:
schedule: [{ cron: '0 0 * * *' }]
workflow_dispatch:
jobs:
autoflow:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install bun
uses: oven-sh/setup-bun@v2
- name: Install deps
run: bun i
- name: Generate sponsor list
run: bun run build:spnsor
env:
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
SPONSORKIT_GITHUB_LOGIN: lobehub
SPONSORKIT_GITHUB_TYPE: organization
SPONSORKIT_OPENCOLLECTIVE_ID: lobehub
SPONSORKIT_OPENCOLLECTIVE_KEY: ${{ secrets.SPONSORKIT_OPENCOLLECTIVE_KEY }}
SPONSORKIT_OPENCOLLECTIVE_TYPE: collective
- name: Commit changes
run: |-
git diff
git config --global user.name "lobehubbot"
git config --global user.email "[email protected]"
git add .
git commit -m "🤖 chore: Auto update sponsor list" || exit 0
git push
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}