mirror of https://github.com/apache/cloudstack.git
.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
|
|
@ -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…
Reference in New Issue