-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1.22 KB
/
Copy pathrefresh-star-activity.yml
File metadata and controls
40 lines (32 loc) · 1.22 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
name: Refresh star activity
# Daily forward-append: one new (date, cumulative_stars) point per tracked
# repo. Cheap — one /repos/{owner}/{name} call per repo (no pagination).
# The one-shot full-history backfill is a separate script that runs manually.
on:
# Manual-only: HOSTUP worker/runtime owns production freshness; GitHub is kept for explicit backfills.
workflow_dispatch:
permissions:
contents: read
concurrency:
group: star-activity-append
cancel-in-progress: false
jobs:
append:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup Node 20
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: "20"
cache: "npm"
- name: Install dependencies
# _data-store-write.mjs dynamically imports `ioredis` on demand;
# without node_modules the import throws ERR_MODULE_NOT_FOUND.
run: npm ci
- name: Append today's star-activity point per tracked repo
env:
REDIS_URL: ${{ secrets.REDIS_URL }}
GITHUB_TOKEN: ${{ github.token }}
run: node scripts/append-star-activity.mjs