-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
58 lines (58 loc) · 1.75 KB
/
action.yml
File metadata and controls
58 lines (58 loc) · 1.75 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
name: 'DevLens Repo Health'
description: 'Score your repo 0-100, auto-inject a live health badge, and get AI-powered README insights — free forever.'
author: 'SamoTech'
branding:
icon: 'activity'
color: 'green'
inputs:
github_token:
description: 'GitHub token'
required: true
groq_api_key:
description: 'Groq API key (free tier) for AI README insights'
required: false
default: ''
groq_model:
description: 'Groq model to use for AI insights (must be enabled in your Groq project)'
required: false
default: 'llama-3.1-8b-instant'
badge_style:
description: 'flat | flat-square | for-the-badge'
required: false
default: 'flat'
update_readme:
description: 'Auto-inject health badge into README'
required: false
default: 'true'
notify_discord:
description: 'Discord webhook for weekly digest'
required: false
default: ''
outputs:
health_score:
description: 'Repo health score 0-100'
badge_url:
description: 'shields.io badge URL'
report_json:
description: 'Full JSON report'
runs:
using: 'composite'
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
shell: bash
run: pip install requests PyGithub python-dateutil --quiet
- name: Run DevLens analysis
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.github_token }}
GROQ_API_KEY: ${{ inputs.groq_api_key }}
GROQ_MODEL: ${{ inputs.groq_model }}
BADGE_STYLE: ${{ inputs.badge_style }}
UPDATE_README: ${{ inputs.update_readme }}
DISCORD_WEBHOOK: ${{ inputs.notify_discord }}
REPO: ${{ github.repository }}
run: python ${{ github.action_path }}/scripts/devlens.py