Skip to content

Enrich Registry Data #311

Enrich Registry Data

Enrich Registry Data #311

Workflow file for this run

name: Enrich Registry Data
on:
schedule:
# Run daily at 06:00 UTC
- cron: '0 6 * * *'
workflow_dispatch: # Allow manual trigger
permissions:
contents: write
pages: write
id-token: write
jobs:
enrich:
name: Enrich Registry with GitHub Data
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run enrichment
run: npm run enrich
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
- name: Commit and push enrichment data
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Auto-update enrichment data (stars, lastCommit)"
file_pattern: "public/enrichment.json"