Skip to content

Scheduler

Scheduler #421

Workflow file for this run

name: Scheduler
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.SPONSORKIT_GITHUB_TOKEN }}
SPONSORKIT_GITHUB_LOGIN: dudykr
SPONSORKIT_GITHUB_TYPE: organization
SPONSORKIT_OPENCOLLECTIVE_KEY: ${{ secrets.SPONSORKIT_OPENCOLLECTIVE_KEY }}
SPONSORKIT_OPENCOLLECTIVE_SLUG: stc
- name: Commit
uses: EndBug/add-and-commit@v4
with:
author_name: SWC Bot
author_email: [email protected]
message: "chore: update sponsors.svg"
add: "sponsors.*"
env:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}