Skip to content

Commit

Permalink
corrections to output messages
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey.shulika committed Nov 2, 2023
1 parent f6c08e5 commit 47ef63f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/license_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
if: steps.set_status.outputs.result == 'FAILED: failed/unknown licenses found'
continue-on-error: false

0 comments on commit 47ef63f

Please sign in to comment.