Skip to content

get_sponsors

get_sponsors #944

Workflow file for this run

name: get_sponsors
on:
workflow_dispatch:
schedule:
- cron: '30 5,17 * * *'
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: cd scripts/sponsorkit && npm i
- name: Update sponsors
run: cd scripts/sponsorkit && npm run build
env:
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORKIT_GITHUB_TOKEN }}
SPONSORKIT_GITHUB_LOGIN: versun
SPONSORKIT_AFDIAN_USER_ID: 2cd194b2ae9f11edabcb5254001e7c00
SPONSORKIT_AFDIAN_TOKEN: ${{ secrets.SPONSORKIT_AFDIAN_TOKEN }}
SPONSORKIT_OPENCOLLECTIVE_KEY: ${{ secrets.SPONSORKIT_OPENCOLLECTIVE_KEY }}
SPONSORKIT_OPENCOLLECTIVE_SLUG: rsstranslator
SPONSORKIT_OPENCOLLECTIVE_TYPE: collective
- name: Commit
uses: EndBug/add-and-commit@v4
with:
message: "chore: update sponsors.svg"
add: "scripts/sponsorkit/sponsorkit/sponsors.*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}