Skip to content

Scheduler

Scheduler #46

Workflow file for this run

name: Scheduler
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
push:
branches: [main]
permissions:
contents: write
pull-requests: write
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_TOKEN_LITTLESOUND: ${{ secrets.SPONSORKIT_GITHUB_TOKEN_LITTLESOUND }}
SPONSORKIT_GITHUB_TOKEN_NEKOMEOWWW: ${{ secrets.SPONSORKIT_GITHUB_TOKEN_NEKOMEOWWW }}
- 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 }}