-
Notifications
You must be signed in to change notification settings - Fork 426
52 lines (41 loc) · 1.4 KB
/
Copy pathenrich-projects.yml
File metadata and controls
52 lines (41 loc) · 1.4 KB
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
43
44
45
46
47
48
49
50
51
52
name: Enrich Projects
on:
schedule:
# Every Monday at 02:00 UTC
- cron: "0 2 * * 1"
workflow_dispatch: {}
concurrency:
group: enrich-projects
cancel-in-progress: true
permissions:
contents: write
pull-requests: write
jobs:
enrich:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Run enrichment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node scripts/enrich-projects.mjs
- name: Open PR with enriched data
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6
with:
commit-message: "chore: update enriched project data"
branch: chore/enrich-projects
base: main
delete-branch: true
add-paths: data/projects.enriched.json
title: "chore: update enriched project data"
body: |
Weekly automated update of `data/projects.enriched.json`.
Pulls latest star counts, last-push dates, languages, and computed
statuses from the GitHub API for all tracked projects.
This PR was opened automatically and is safe to merge.
labels: automated