From f6c08e56b883be76794c4d3e564fab046ae1cfe9 Mon Sep 17 00:00:00 2001 From: Saba Mushtashvili Date: Wed, 23 Aug 2023 10:04:58 +0000 Subject: [PATCH] chenged fail condition --- .github/workflows/license_check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index f5b4fff..467e12c 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -48,8 +48,8 @@ jobs: - name: Determine workflow status id: set_status run: | - output=$(cat ./licenses_check/failed_licenses.csv) - if [[ -n "$output" ]]; then + line_count=$(wc -l < ./licenses_check/failed_licenses.csv) + if [[ $line_count -gt 1 ]]; then echo "Workflow failed due to faulty certificates" exit 1 else