From f301f63e061661dd9ae4de083a8cf6cd493df29f Mon Sep 17 00:00:00 2001 From: Archit Aggarwal Date: Mon, 15 Feb 2021 20:25:26 +0000 Subject: [PATCH] Test change in shell logic in coverage-cop action --- coverage-cop/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coverage-cop/action.yml b/coverage-cop/action.yml index ae215f89..ccb35707 100644 --- a/coverage-cop/action.yml +++ b/coverage-cop/action.yml @@ -22,13 +22,13 @@ runs: RESULT=0 echo "Required line coverage: ${{ inputs.line-coverage-min }}" echo "Line coverage: $LINE_COVERAGE" - if [[ $(echo "$LINE_COVERAGE < ${{ inputs.line-coverage-min }}" | bc) -ne 0 ]]; then + if [[ "$LINE_COVERAGE" < "${{ inputs.line-coverage-min }}" ]]; then echo "Line Coverage is too low." RESULT=1 fi echo "Required branch coverage: ${{ inputs.branch-coverage-min }}" echo "Branch coverage: $BRANCH_COVERAGE" - if [[ $(echo "$BRANCH_COVERAGE < ${{ inputs.branch-coverage-min }}" | bc) -ne 0 ]]; then + if [[ "$BRANCH_COVERAGE" < "${{ inputs.branch-coverage-min }}" ]]; then echo "Branch Coverage is too low." RESULT=1 fi