Skip to content

Commit

Permalink
add percentage sign
Browse files Browse the repository at this point in the history
  • Loading branch information
BoSmallEar committed Oct 20, 2023
1 parent 4fbc39e commit ec7acdf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ jobs:
echo "before=$before" >> "$GITHUB_ENV"
- name: check if docstring coverage has improved
run: |
printf 'Docstring coverage before pull request: %s\n' "$before"
printf 'Docstring coverage after pull request: %s\n' "$after"
printf 'Docstring coverage before pull request: %s%%\n' "$before"
printf 'Docstring coverage after pull request: %s%%\n' "$after"
improvement=$(echo "$after - $before" | bc -l)
if (( $(echo "$after > $before" |bc -l) )); then
printf 'Docstring check successful! You have improved the coverage by: %s\n' "$improvement"
printf 'Docstring check successful! You have improved the coverage by: %s%%\n' "$improvement"
exit 0
fi
printf 'Docstring check failed! You have only improved the coverage by: %s\n' "$improvement"
printf 'Docstring check failed! You have only improved the coverage by: %s%%\n' "$improvement"
exit 1
Expand Down

0 comments on commit ec7acdf

Please sign in to comment.