scheduled #74
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: scheduled | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 03 * * *" | |
push: | |
branches: [main] | |
jobs: | |
sponsors: | |
if: github.repository == 'joe-bell/cva' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.REPO_TOKEN }} | |
- uses: ./.github/actions/install | |
- 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.*" | |
push: origin main | |
env: | |
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} |