From ecc89a90a8aee6526adb00cca45d642926b8a183 Mon Sep 17 00:00:00 2001 From: irongut Date: Mon, 18 Oct 2021 01:30:03 +0100 Subject: [PATCH] added Thresholds parameter to action definition #15 --- action.yml | 6 ++++++ src/CodeCoverageSummary/CommandLineOptions.cs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index ad67fd2..1b4ef0a 100644 --- a/action.yml +++ b/action.yml @@ -20,6 +20,10 @@ inputs: description: 'Output Type - console (default), file or both.' required: false default: 'console' + thresholds: + description: 'Badge colour threshold percentages, default '50 75'.' + required: false + default: '50 75' runs: using: 'docker' image: 'docker://ghcr.io/irongut/codecoveragesummary:v1.0.5' @@ -31,3 +35,5 @@ runs: - ${{ inputs.format }} - '--output' - ${{ inputs.output }} + - '--thresholds' + - ${{ inputs.thresholds }} diff --git a/src/CodeCoverageSummary/CommandLineOptions.cs b/src/CodeCoverageSummary/CommandLineOptions.cs index 7a85b0f..6565df2 100644 --- a/src/CodeCoverageSummary/CommandLineOptions.cs +++ b/src/CodeCoverageSummary/CommandLineOptions.cs @@ -16,7 +16,7 @@ namespace CodeCoverageSummary [Option(longName: "output", Required = false, HelpText = "Output Type - console, file or both.", Default = "console")] 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; } } }