Skip to content

Generate Sponsors

Generate Sponsors #144

name: Generate Sponsors
on:
workflow_dispatch:
schedule:
# run every 5 days at 4:03 am
- cron: '3 4 */5 * *'
jobs:
update-sponsors:
runs-on: ubuntu-latest
if: github.repository == 'tw-in-js/twind'
steps:
- name: 📥 Checkout
uses: actions/checkout@v3
- name: 🔧 Setup
uses: ./.github/actions/setup
with:
installArgs: --filter="." --filter="./scripts"
- name: Update sponsors
run: pnpm run sponsors
working-directory: scripts
env:
SPONSORKIT_GITHUB_TOKEN: ${{ secrets.SPONSORS_TOKEN }}
SPONSORKIT_OPENCOLLECTIVE_KEY: ${{ secrets.OPENCOLLECTIVE_KEY }}
- name: Commit
uses: EndBug/add-and-commit@v9
with:
message: 'chore: update sponsors images'
add: 'sites/twind.style/static/sponsors.*'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}