-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathaction.yml
54 lines (44 loc) · 1.22 KB
/
action.yml
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
name: 'Create Coverage Badges'
author: 'Kenny Wong'
description: 'Create coverage badges from coverage reports. Using GitHub Actions and GitHub Workflow CPU time (no 3rd parties servers).'
inputs:
source:
description: The path of the target file "coverage-summary.json".
default: coverage/coverage-summary.json
required: false
output:
description: Output image path.
default: coverage/badges.svg
required: false
label:
description: The left label of the badge, usually static.
default: coverage
required: false
style:
description: 'Badges style: flat, classic.'
default: classic
required: false
scale:
description: 'Set badge scale (default: 1)'
default: "1"
required: false
color:
description: "<Color RGB> or <Color Name> (default: '555')"
required: false
labelColor:
description: "<Color RGB> or <Color Name> (default: '')"
default: "555"
required: false
jsonPath:
description: 'Path to the coverage percentage number to be used in the badge'
default: total.lines.pct
required: false
outputs:
svg:
description: 'svg image string'
runs:
using: 'node20'
main: 'dist/action.js'
branding:
icon: 'list'
color: 'blue'