/
action.yml
43 lines (43 loc) · 1.28 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
name: '.NET code metric analyzer'
description: 'A Github action that maintains a CODE_METRICS.md file, reporting cylcomatic complexity, maintainability index, etc.'
branding:
icon: sliders
color: purple
inputs:
owner:
description: 'The owner of the repo. Assign from github.repository_owner. Example, "dotnet".'
required: true
name:
description: 'The repository name. Example, "samples".'
required: true
branch:
description: 'The branch name. Assign from github.ref. Example, "refs/heads/main".'
required: true
dir:
description: 'The root directory to work from. Example, "path/to/code".'
required: true
workspace:
description: 'The workspace directory.'
required: false
default: '/github/workspace'
outputs:
summary-title:
description: 'The title of the code metrics action.'
summary-details:
description: 'A detailed summary of all the projects that were flagged.'
updated-metrics:
description: 'A boolean value, indicating whether or not the CODE_METRICS.md was updated as a result of running this action.'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- '-o'
- ${{ inputs.owner }}
- '-n'
- ${{ inputs.name }}
- '-b'
- ${{ inputs.branch }}
- '-d'
- ${{ inputs.dir }}
- '-w'
- ${{ inputs.workspace }}