-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
70 lines (62 loc) · 2.02 KB
/
action.yml
File metadata and controls
70 lines (62 loc) · 2.02 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: 'StarClass'
description: 'Automatically cluster your starred GitHub repositories using semantic similarity'
author: 'gojiplus'
inputs:
github-token:
description: 'GitHub token with user scope to access starred repositories'
required: true
username:
description: 'GitHub username (optional, defaults to token owner)'
required: false
cluster-mode:
description: 'Clustering mode: auto, full, or assign'
required: false
default: 'auto'
outputs:
clusters-json:
description: 'Path to generated clusters JSON file'
value: 'starred_repos_clusters.json'
clusters-markdown:
description: 'Path to generated clusters Markdown file'
value: 'starred_repos_clusters.md'
data-json:
description: 'Path to raw repository data JSON file'
value: 'starred_repos_data.json'
changes-json:
description: 'Path to repository changes tracking file'
value: 'starred_repos_changes.json'
repos-list-json:
description: 'Path to starred repositories list file'
value: 'starred_repos_list.json'
runs:
using: 'composite'
steps:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install -r ${{ github.action_path }}/scripts/requirements.txt
- name: Fetch starred repositories
shell: bash
env:
GH_TOKEN: ${{ inputs.github-token }}
GH_USER: ${{ inputs.username }}
run: python ${{ github.action_path }}/scripts/fetch_starred.py
- name: Collect repository data
shell: bash
env:
GH_TOKEN: ${{ inputs.github-token }}
GH_USER: ${{ inputs.username }}
run: python ${{ github.action_path }}/scripts/collect_data.py
- name: Generate clusters
shell: bash
env:
CLUSTER_MODE: ${{ inputs.cluster-mode }}
run: python ${{ github.action_path }}/scripts/cluster_repos.py
branding:
icon: 'star'
color: 'blue'