-
Notifications
You must be signed in to change notification settings - Fork 25
/
action.yml
46 lines (46 loc) · 1.27 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
# action.yml
name: 'Badge Action'
author: 'emibcn'
description: 'Create a SVG badge using GitHub Actions and GitHub Workflow CPU time (no 3rd parties servers)'
branding:
icon: award
color: blue
inputs:
label:
description: 'The left label of the badge, usually static.'
required: true
label-color:
description: 'Hex or named color for the label'
required: true
default: '555'
status:
description: 'The right status as the badge, usually based on results.'
required: true
color:
description: 'An array (comma separated) with hex or named colors of the badge value background. More than one creates gradient background.'
required: true
default: 'blue'
style:
description: 'Badge style: flat or classic'
required: true
default: 'classic'
icon:
description: 'Use icon'
required: false
icon-width:
description: 'Set this if icon is not square'
required: false
default: 13
scale:
description: 'Set badge scale'
required: true
default: 1
path:
description: 'The file path to store the badge image file. Only output to `badge` action output if undefined.'
required: false
outputs:
badge:
description: 'The badge SVG contents'
runs:
using: 'node20'
main: 'dist/badge-action.modern.js'