From 2389c9883ac04ae4fa61a755169f779eb2d5e5c2 Mon Sep 17 00:00:00 2001 From: irongut Date: Wed, 20 Oct 2021 00:01:43 +0100 Subject: [PATCH] added fail_below_min to action definition #16 --- action.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index d80c442..9096f18 100644 --- a/action.yml +++ b/action.yml @@ -12,6 +12,10 @@ inputs: description: 'Include a Line Rate coverage badge in the output using shields.io - true / false (default).' required: false default: 'false' + fail_below_min: + description: 'Fail if overall Line Rate below lower threshold - true / false (default).' + required: false + default: 'false' format: description: 'Output Format - markdown or text (default).' required: false @@ -25,7 +29,7 @@ inputs: required: false default: 'console' thresholds: - description: 'Badge and health indicator threshold percentages, default '50 75'.' + description: 'Threshold percentages for badge and health indicators, lower threshold can also be used to fail the action.' required: false default: '50 75' runs: @@ -35,6 +39,8 @@ runs: - ${{ inputs.filename }} - '--badge' - ${{ inputs.badge }} + - '--fail' + - ${{ inputs.fail_below_min }} - '--format' - ${{ inputs.format }} - '--indicators'