Skip to content

Sponsorkit

Sponsorkit #439

name: Sponsorkit
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
push:
branches: [ main ]
jobs:
update-sponsors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set node
uses: actions/setup-node@v3
with:
node-version: lts/*
- run: npm install
- name: Update sponsors
run: npm run build-sponsors
env:
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORS_TOKEN }}
SPONSORKIT_GITHUB_LOGIN: endel
SPONSORKIT_PATREON_TOKEN: ${{ secrets.SPONSORKIT_PATREON_TOKEN }}
- name: Commit
uses: EndBug/add-and-commit@v4
with:
message: "chore: update sponsors.svg"
add: "sponsorkit/*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}