Skip to content

Scheduler

Scheduler #2

Workflow file for this run

name: Scheduler
on:
workflow_dispatch:
schedule:
- cron: '0 0 30 * *'
jobs:
update-sponsors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*
- run: npx pnpm i
- name: Update sponsors
run: npm run build
env:
SPONSORKIT_OPENCOLLECTIVE_KEY: ${{ secrets.SPONSORKIT_OPENCOLLECTIVE_KEY }}
SPONSORKIT_OPENCOLLECTIVE_SLUG: antfu
- name: Commit
uses: EndBug/add-and-commit@v5
with:
message: "chore: update sponsors.svg"
add: "sponsors.*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}