mirror of
https://github.com/irongut/CodeCoverageSummary.git
synced 2026-05-18 16:00:13 +02:00
added Thresholds parameter to action definition #15
This commit is contained in:
@@ -20,6 +20,10 @@ inputs:
|
|||||||
description: 'Output Type - console (default), file or both.'
|
description: 'Output Type - console (default), file or both.'
|
||||||
required: false
|
required: false
|
||||||
default: 'console'
|
default: 'console'
|
||||||
|
thresholds:
|
||||||
|
description: 'Badge colour threshold percentages, default '50 75'.'
|
||||||
|
required: false
|
||||||
|
default: '50 75'
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'docker://ghcr.io/irongut/codecoveragesummary:v1.0.5'
|
image: 'docker://ghcr.io/irongut/codecoveragesummary:v1.0.5'
|
||||||
@@ -31,3 +35,5 @@ runs:
|
|||||||
- ${{ inputs.format }}
|
- ${{ inputs.format }}
|
||||||
- '--output'
|
- '--output'
|
||||||
- ${{ inputs.output }}
|
- ${{ inputs.output }}
|
||||||
|
- '--thresholds'
|
||||||
|
- ${{ inputs.thresholds }}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace CodeCoverageSummary
|
|||||||
[Option(longName: "output", Required = false, HelpText = "Output Type - console, file or both.", Default = "console")]
|
[Option(longName: "output", Required = false, HelpText = "Output Type - console, file or both.", Default = "console")]
|
||||||
public string Output { get; set; }
|
public string Output { get; set; }
|
||||||
|
|
||||||
[Option(longName: "thresholds", Required = false, HelpText = "Badge colour thresholds.", Default = "50 75")]
|
[Option(longName: "thresholds", Required = false, HelpText = "Badge colour threshold percentages.", Default = "50 75")]
|
||||||
public string Thresholds { get; set; }
|
public string Thresholds { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user