Skip to content

Feat: handling @import and optimice cache, closes #61 #18

Feat: handling @import and optimice cache, closes #61

Feat: handling @import and optimice cache, closes #61 #18

name: Update Contributors in README
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
update-contributors:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Generate contributors list
run: node .github/scripts/update-contributors.js
- name: Commit and push if changed
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git diff --quiet || (git add README.md && git commit -m "chore: update contributors list" && git push)