forked from shadowmoose/GHA-LoC-Badge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
64 lines (60 loc) · 1.74 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
55
56
57
58
59
60
61
62
63
64
name: 'Lines of Code Badge'
description: 'Generate a badge to display total Lines of Code'
inputs:
directory:
description: 'The directory to scan.'
required: false
default: './'
badge:
description: 'The output path to save the badge svg - including extension!'
required: false
default: './badge.svg'
patterns:
description: 'The file patterns to search for, separated by pipes ("|").'
required: false
default: "**"
ignore:
description: 'The file patterns to ignore, even if they matched "patterns", separated by pipes ("|").'
required: false
default: "node_modules"
badge_label:
description: "The label to use for the badge."
required: false
default: "Lines of Code"
badge_color:
description: "The color to use for the badge."
required: false
default: "blue"
badge_style:
description: "The body style to use for the badge. ('flat' or 'classic')"
required: false
default: "classic"
badge_scale:
description: "The scale to resize this badge"
required: false
default: "1"
badge_labelcolor:
description: "The color to use for this badge label."
required: false
default: "555"
debug:
description: 'Enable debug logging'
required: false
default: 'false'
outputs:
total_lines:
description: 'The total line count.'
counted_files:
description: 'A count of all files that were included in the total.'
elapsed_ms:
description: 'The time that this scan took.'
output_path:
description: 'The absolute path to the SVG that was generated.'
output_dir:
description: 'The absolute path to the directory that contains the output svg.'
runs:
using: 'node12'
main: './src/index.js'
branding:
icon: 'award'
color: 'green'