Scheduler #1469
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Scheduler | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
branches: [ master ] | |
jobs: | |
update-sponsors: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
- name: Set node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- run: corepack enable && pnpm i | |
- name: Update sponsors | |
run: npm run build | |
env: | |
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORKIT_GITHUB_TOKEN }} | |
SPONSORKIT_GITHUB_LOGIN: antfu | |
SPONSORKIT_OPENCOLLECTIVE_KEY: ${{ secrets.SPONSORKIT_OPENCOLLECTIVE_KEY }} | |
SPONSORKIT_OPENCOLLECTIVE_SLUG: antfu | |
# Afdian site is down, bring it back when it recovers | |
# SPONSORKIT_AFDIAN_USER_ID: ${{ secrets.SPONSORKIT_AFDIAN_USER_ID }} | |
# SPONSORKIT_AFDIAN_TOKEN: ${{ secrets.SPONSORKIT_AFDIAN_TOKEN }} | |
- name: Commit | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: GitHub Actions | |
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 }} |