-
Notifications
You must be signed in to change notification settings - Fork 10
/
action.yml
59 lines (58 loc) · 1.7 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
# action.yml
name: 'Bring Your Own Badge'
author: 'RubbaBoy'
description: 'BYOB - Custom badges based off of GitHub Actions'
branding:
icon: award
color: blue
inputs:
name:
description: 'The alphanumeric (-_ included) name of the badge, 32 chars or less. Used only for identification purposes.'
required: true
label:
description: 'The left label of the badge, usually static.'
required: false
default: ''
icon:
description: 'The badgen icon of the badge'
required: false
default: ''
status:
description: 'The right status as the badge, usually based on results.'
required: true
color:
description: 'The hex color of the badge.'
required: true
github_token:
description: 'The GitHub token to push to the current repo. Suggested as secrets.GITHUB_TOKEN'
required: true
path:
description: 'The absolute file path to store the JSON data to.'
required: false
default: '/shields.json'
branch:
description: 'The branch to contain the shields file.'
required: false
default: 'shields'
repository:
description: 'The user/repo or org/repo where shields.json will get pushed to, as long as action has access'
required: false
default: ''
actor:
description: 'The account owner of a custom GitHub Access Token. Required if using a custom repository and custom token'
required: false
default: ''
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.name }}
- ${{ inputs.label }}
- ${{ inputs.icon }}
- ${{ inputs.status }}
- ${{ inputs.color }}
- ${{ inputs.path }}
- ${{ inputs.github_token }}
- ${{ inputs.branch }}
- ${{ inputs.repository }}
- ${{ inputs.actor }}