-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yaml
More file actions
66 lines (62 loc) · 1.71 KB
/
action.yaml
File metadata and controls
66 lines (62 loc) · 1.71 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
name: "OSS Footprint"
description: "Generate a summary of your OSS contributions on GitHub, sorted by impact."
author: "arayofcode"
branding:
icon: "activity"
color: "green"
inputs:
gh_token:
description: "GitHub token"
required: false
default: ${{ github.token }}
username:
description: "GitHub username (defaults to GITHUB_ACTOR)"
required: false
output_branch:
description: "Branch to publish generated artifacts"
required: false
default: "footprint-output"
output_dir:
description: "Output directory for artifacts"
required: false
default: "dist"
min_stars:
description: >
Minimum star count for a project to appear in card sections.
Does not affect aggregate stats (Stars Earned, Projects Owned) —
all owned projects are always counted.
required: false
default: "0"
card:
description: "Generate SVG card"
required: false
default: "true"
timeout:
description: "Timeout for GitHub API operations in seconds"
required: false
default: "300"
outputs:
total_contributions:
description: "Count of discovered external contributions"
owned_projects_count:
description: "Count of owned OSS projects meeting the star threshold"
total_score:
description: "Calculated aggregate impact score"
runs:
using: docker
image: Dockerfile
env:
GITHUB_TOKEN: ${{ inputs.gh_token }}
OUTPUT_BRANCH: ${{ inputs.output_branch }}
OUTPUT_DIR: ${{ inputs.output_dir }}
args:
- "-username"
- "${{ inputs.username }}"
- "-output"
- "${{ inputs.output_dir }}"
- "-min-stars"
- "${{ inputs.min_stars }}"
- "-card"
- "${{ inputs.card }}"
- "-timeout"
- "${{ inputs.timeout }}s"