Files
spartan-ng__spartan/.github/workflows/update-contributors.yml
goetzrobin 45b008db12 ci: automate updates to the 300 contributors
Add a scheduled workflow that runs the update-contributors generator daily and
commits newly detected contributors, mirroring the nightly release setup. Also
add the five contributors the generator surfaced that were missing from the
README and the home page list.
2026-06-04 14:02:59 +02:00

39 lines
1.1 KiB
YAML

name: update-contributors
on:
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
jobs:
update-contributors:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
with:
# Full history is required to derive contributor usernames from git log.
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v5
- name: Install Node
uses: actions/setup-node@v6
with:
node-version-file: .node-version
cache: 'pnpm'
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Update contributors
env:
# Lets the generator enhance git history with the GitHub contributors API.
GH_TOKEN: ${{ github.token }}
run: pnpm update-contributors
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: Leonidas
author_email: leonidas@spartan.ng
message: 'chore: add new contributors to our 300'
add: "README.md 'apps/app/src/app/pages/(home)/components/three-hundred.ts'"