From b3ba6375da1280adc698bcaa299483fbb5ba60bc Mon Sep 17 00:00:00 2001 From: Joe Bell <7349341+joe-bell@users.noreply.github.com> Date: Sat, 28 Sep 2024 18:36:16 +0300 Subject: [PATCH] chore: add sponsors ci --- .github/actions/install/sponsors.yml | 47 ++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/actions/install/sponsors.yml diff --git a/.github/actions/install/sponsors.yml b/.github/actions/install/sponsors.yml new file mode 100644 index 0000000..d7f27d0 --- /dev/null +++ b/.github/actions/install/sponsors.yml @@ -0,0 +1,47 @@ +name: Sponsors + +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * *" + push: + branches: [main] + +jobs: + update-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 }}