mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
.github: skip coverage data when string is empty
This fixes issue of empty rows in the PR coverage data Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
7233c38567
commit
9f27c992da
4
.github/workflows/coverage-check.yml
vendored
4
.github/workflows/coverage-check.yml
vendored
@ -97,7 +97,9 @@ jobs:
|
||||
name=$(basename $file | sed 's/.java//g')
|
||||
coverage=$(grep ,$name, client/target/site/jacoco-aggregate/jacoco.csv | cut -f3-9 -d"," | sed 's/,/|/g')
|
||||
echo $coverage
|
||||
echo "|$coverage|" >> $GITHUB_ENV
|
||||
if [[ ! -z "${coverage// }" ]]; then
|
||||
echo "|$coverage|" >> $GITHUB_ENV
|
||||
fi
|
||||
done
|
||||
echo "EOF" >> $GITHUB_ENV
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user