Skip to content

Sync Contributors

Sync Contributors #128

name: Sync Contributors
on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:
push:
paths:
- 'src/lib/github.ts'
- 'src/lib/contributorSync.ts'
jobs:
sync:
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run sync script
run: npx tsx src/scripts/syncContributors.ts
env:
VITE_GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
VITE_SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
VITE_SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_KEY }}