Update Sponsorships CSV #16
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: Update Sponsorships CSV | |
on: | |
schedule: | |
- cron: "0 19 * * *" # 7am PST (1 hour after contribution overview) | |
workflow_dispatch: # Allow manual triggering | |
jobs: | |
update-sponsorships: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v2 | |
with: | |
bun-version: latest | |
- name: Install dependencies | |
run: bun install | |
- name: Generate sponsorships CSV | |
run: bun scripts/generate-sponsorship-csv.ts | |
- name: Commit changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add sponsorships | |
git diff --quiet && git diff --staged --quiet || git commit -m "Update sponsorships CSV" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main |