From 47ef63f5a2c246f328b016e2cd42d5f506a81d5c Mon Sep 17 00:00:00 2001 From: "andrey.shulika" Date: Thu, 2 Nov 2023 14:55:42 +0300 Subject: [PATCH] corrections to output messages --- .github/workflows/license_check.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/license_check.yml b/.github/workflows/license_check.yml index 467e12c..cc24588 100644 --- a/.github/workflows/license_check.yml +++ b/.github/workflows/license_check.yml @@ -50,15 +50,14 @@ jobs: run: | line_count=$(wc -l < ./licenses_check/failed_licenses.csv) if [[ $line_count -gt 1 ]]; then - echo "Workflow failed due to faulty certificates" - exit 1 + echo "FAILED: failed/unknown licenses found" + exit 1 else - echo "All certificates are valid" - echo "Success" - exit 0 + echo "PASSED: license check successfull" + exit 0 fi - name: Set workflow status run: echo "::set-output name=status::Failure" - if: steps.set_status.outputs.result == 'Workflow failed due to faulty certificates' - continue-on-error: false \ No newline at end of file + if: steps.set_status.outputs.result == 'FAILED: failed/unknown licenses found' + continue-on-error: false