File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments