-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
42 lines (42 loc) · 1.06 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
---
name: KnpLabs/K-pi
description: Compile, verify and publish metrics
branding:
color: red
icon: thermometer
inputs:
command:
required: true
type: 'string'
configuration:
description: 'The configuration'
required: false
type: 'string'
configuration_file:
description: 'The path to the configuration file'
required: false
default: '.k-pi.dist.yaml'
type: 'string'
report:
description: 'One of the report names configured in the configuration file'
required: true
type: 'string'
values:
description: 'The metric value read (int|float of list of int|float)'
required: true
github_token:
description: The GitHub token used to create an authenticated client
default: ${{ github.token }}
required: false
github_pull_request:
default: ${{ github.event.pull_request.html_url }}
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.command }}
- ${{ inputs.report }}
- ${{ inputs.values }}
- '--configuration-file'
- ${{ inputs.configuration_file }}