-
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (40 loc) · 1.05 KB
/
Copy pathseed-popular-repos.yml
File metadata and controls
43 lines (40 loc) · 1.05 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
name: Seed popular OctoCounts reports
on:
workflow_dispatch:
inputs:
limit:
description: "Maximum repositories to seed"
required: false
default: "50"
force_refresh:
description: "Force refresh cached reports"
required: false
default: "false"
schedule:
- cron: "17 3 * * 1"
permissions:
contents: read
jobs:
seed:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: "22"
- name: Seed report inventory
env:
LIMIT: ${{ github.event.inputs.limit || '50' }}
FORCE_REFRESH: ${{ github.event.inputs.force_refresh || 'false' }}
run: |
FLAGS=""
if [ "$FORCE_REFRESH" = "true" ]; then
FLAGS="$FLAGS --force-refresh"
fi
node scripts/seed-popular-repos.mjs \
--limit "$LIMIT" \
--concurrency 2 \
--delay-ms 750 \
--max-polls 180 \
$FLAGS