Scheduler #315
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: [main] | |
jobs: | |
update-sponsors: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
version: latest | |
run_install: true | |
- name: Update sponsors | |
run: pnpm run build | |
env: | |
SPONSORKIT_OPENCOLLECTIVE_SLUG: "tnb" | |
SPONSORKIT_OPENCOLLECTIVE_KEY: ${{ secrets.SPONSORKIT_OPENCOLLECTIVE_KEY }} | |
SPONSORKIT_OPENCOLLECTIVE_TYPE: "person" | |
SPONSORKIT_AFDIAN_USER_ID: ${{ secrets.SPONSORKIT_AFDIAN_USER_ID }} | |
SPONSORKIT_AFDIAN_TOKEN: ${{ secrets.SPONSORKIT_AFDIAN_TOKEN }} | |
- name: Copy sponsors | |
run: cp -r sponsorkit/* . | |
- name: Commit | |
uses: EndBug/add-and-commit@v9 | |
with: | |
message: "chore: update sponsors.svg" | |
add: "sponsors.*" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |