Skip to content

Commit

Permalink
chore: add sponsors ci
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-bell committed Sep 28, 2024
1 parent 388edc3 commit 4056e4e
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: scheduled

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
push:
branches: [main]

jobs:
sponsors:
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v3
with:
run_install: false

- uses: actions/setup-node@v4
with:
cache: "pnpm"
node-version-file: ".nvmrc"

- name: Preinstallation steps
shell: bash
run: corepack enable

- name: Install dependencies
shell: bash
run: pnpm i --frozen-lockfile

- name: Update sponsors
run: pnpm sponsors
env:
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORKIT_GITHUB_TOKEN }}
SPONSORKIT_GITHUB_LOGIN: joe-bell
SPONSORKIT_POLAR_TOKEN: ${{ secrets.SPONSORKIT_POLAR_TOKEN }}
SPONSORKIT_POLAR_ORGANIZATION: cva

- name: Commit
uses: EndBug/add-and-commit@v9
with:
author_name: GitHub Actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
message: "chore: update sponsors.svg [ci skip]"
add: ".github/static/sponsorkit/sponsors.*"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4056e4e

Please sign in to comment.