|
name: Scheduler |
|
|
|
on: |
|
workflow_dispatch: |
|
schedule: |
|
- cron: "0 0 * * *" |
|
push: |
|
branches: [main] |
|
|
|
jobs: |
|
update-sponsors: |
|
runs-on: ubuntu-latest |
|
steps: |
|
- uses: actions/checkout@v6 |
|
|
|
- name: Setup PNPM |
|
uses: pnpm/action-setup@v6 |
|
|
|
- name: Setup Node |
|
uses: actions/setup-node@v6 |
|
with: |
|
node-version: lts/* |
|
|
|
- run: pnpm i |
|
|
|
- name: Update sponsors |
|
run: pnpm run build |
|
env: |
|
# Requires no scopes or 2FA actions enabled. |
|
SPONSORKIT_OPENCOLLECTIVE_KEY: ${{ secrets.SPONSORKIT_OPENCOLLECTIVE_KEY }} |
|
# Requires the `read:user` and `read:org` scopes. |
|
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
- name: Commit |
|
uses: EndBug/add-and-commit@v10 |
|
with: |
|
default_author: github_actions |
|
message: "chore: update sponsors.svg" |
|
add: "sponsors/sponsors.*" |
|
env: |
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |