Skip to content

Scheduler

Scheduler #423

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
# install node
- name: Use Node.js 16.x
uses: actions/setup-node@v1
with:
node-version: 16.x
# install sponsorkit
- run: npm i
- name: Update sponsors
run: npm run build
env:
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORKIT_GITHUB_TOKEN }}
SPONSORKIT_GITHUB_LOGIN: johnsoncodehk
- name: Commit
uses: EndBug/add-and-commit@v4
with:
message: "chore: update sponsors.svg"
add: "sponsors.* */sponsors.*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}