Skip to content

Commit d5300bd

Browse files
authored
new score check (#6)
1 parent 3ce1d7d commit d5300bd

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,14 @@ jobs:
6969
with:
7070
githubToken: ${{ secrets.GITHUB_TOKEN }}
7171
- name: Check scores
72-
# TODO: Once 1.0.0 lands, change min maintenance points to 100
72+
env:
73+
TOTAL: ${{ steps.analysis.outputs.total }}
74+
TOTAL_MAX: ${{ steps.analysis.outputs.total_max }}
75+
# TODO: Once 1.0.0 lands, change to 100
7376
run: |
74-
MAINTENANCE_SCORE=${{ steps.analysis.outputs.maintenance }}
75-
HEALTH_SCORE=${{ steps.analysis.outputs.health }}
76-
if (( $(echo "$MAINTENANCE_SCORE < 90" | bc) )) || (( $(echo "$HEALTH_SCORE < 100" | bc) ))
77+
PERCENTAGE=$(( $TOTAL * 100 / $TOTAL_MAX ))
78+
if (( $PERCENTAGE < 95 ))
7779
then
78-
echo "Scores must be min 90 for maintenance (until 1.0 ships), 100 for health."
80+
echo Score too low!
7981
exit 1
8082
fi

0 commit comments

Comments
 (0)