Skip to content

Commit

Permalink
hotfix master-coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-sz committed Feb 3, 2025
1 parent bb23060 commit ef783f2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/master-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ jobs:
COVERAGE=$(php scripts/get-coverage.php var/coverage/clover-main.xml)
COVERAGE_INT=${COVERAGE%%.*}
if [ "COVERAGE_INT" -ge 90 ]; then
COLOR="#3fb911"
elif [ "COVERAGE_INT" -ge 75 ]; then
COLOR="yellow"
elif [ "COVERAGE_INT" -ge 50 ]; then
COLOR="orange"
else
COLOR="red"
fi
if [ "$COVERAGE_INT" -ge 90 ]; then
COLOR="#3fb911"
elif [ "$COVERAGE_INT" -ge 75 ]; then
COLOR="yellow"
elif [ "$COVERAGE_INT" -ge 50 ]; then
COLOR="orange"
else
COLOR="red"
fi
echo "COVERAGE_PERCENT=${COVERAGE}" >> $GITHUB_ENV
echo "COVERAGE_COLOR=${COLOR}" >> $GITHUB_ENV
Expand Down

0 comments on commit ef783f2

Please sign in to comment.