-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (46 loc) · 1.37 KB
/
Copy pathcollect-github-signals.yml
File metadata and controls
52 lines (46 loc) · 1.37 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: collect-github-signals
on:
schedule:
- cron: "17 */6 * * *" # every 6 hours
workflow_dispatch:
inputs:
days:
description: "Lookback window in days"
required: false
default: "1"
repos:
description: "Comma-separated owner/repo list"
required: false
default: "dbwls99706/deadends.dev"
min_score:
description: "Minimum quality score threshold"
required: false
default: "2"
permissions:
contents: read
jobs:
collect:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Collect GitHub signals
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DAYS: ${{ github.event.inputs.days || '1' }}
REPOS: ${{ github.event.inputs.repos || 'dbwls99706/deadends.dev' }}
MIN_SCORE: ${{ github.event.inputs.min_score || '2' }}
run: |
python scripts/collect_github_signals.py \
--repos "${REPOS}" \
--days "${DAYS}" \
--min-score "${MIN_SCORE}"
- name: Upload collected ndjson artifacts
uses: actions/upload-artifact@v4
with:
name: github-signals-${{ github.run_id }}
path: data/raw/github/**