Skip to content

Update Contributors #35

Update Contributors

Update Contributors #35

name: Update Contributors
on:
schedule:
- cron: '0 0 * * *' # daily at midnight UTC
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: 24
- name: Install dependencies
run: npm ci
- name: Run update script
run: node scripts/updateContributors.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit and push changes
run: |
git config user.name "github-actions"
git config user.email "actions@github.com"
git add data/contributors.json || true
git commit -m "chore: update contributors" || echo "No changes to commit"
git push || echo "Push failed"