-
Notifications
You must be signed in to change notification settings - Fork 31
50 lines (35 loc) · 983 Bytes
/
Copy pathenrich.yml
File metadata and controls
50 lines (35 loc) · 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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"