We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ce1d7d commit d5300bdCopy full SHA for d5300bd
.github/workflows/build.yml
@@ -69,12 +69,14 @@ jobs:
69
with:
70
githubToken: ${{ secrets.GITHUB_TOKEN }}
71
- name: Check scores
72
- # TODO: Once 1.0.0 lands, change min maintenance points to 100
+ 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
76
run: |
- MAINTENANCE_SCORE=${{ steps.analysis.outputs.maintenance }}
- HEALTH_SCORE=${{ steps.analysis.outputs.health }}
- if (( $(echo "$MAINTENANCE_SCORE < 90" | bc) )) || (( $(echo "$HEALTH_SCORE < 100" | bc) ))
77
+ PERCENTAGE=$(( $TOTAL * 100 / $TOTAL_MAX ))
78
+ if (( $PERCENTAGE < 95 ))
79
then
- echo "Scores must be min 90 for maintenance (until 1.0 ships), 100 for health."
80
+ echo Score too low!
81
exit 1
82
fi
0 commit comments