Skip to content

Commit

Permalink
Coverage badge: fix color selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Parnassius committed Feb 3, 2024
1 parent dd940cb commit 9764ca7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
run: |
echo "color=$(python3 -Ic 'print(
min(
color
(percentage, color)
for percentage, color in [
(100, "brightgreen"),
(90, "green"),
Expand All @@ -111,7 +111,7 @@ jobs:
(0, "red"),
]
if percentage >= int(${{ needs.coverage.outputs.percentage }})
)
)[1]
)')" >> $GITHUB_OUTPUT
- name: Update JSON file
run: |
Expand Down

0 comments on commit 9764ca7

Please sign in to comment.