Skip to content

Commit

Permalink
chore: Attempt to create dynamic badge in build.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkapfham committed Jul 14, 2023
1 parent ad39756 commit a5d5507
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,16 @@ jobs:
echo "### Total coverage: ${TOTAL}%" >> $GITHUB_STEP_SUMMARY
CURRENT_GITHUB_STEP_SUMMARY="\`\`\`\n$(cat coverage.txt)\n\`\`\`"
echo "$CURRENT_GITHUB_STEP_SUMMARY" >> $GITHUB_STEP_SUMMARY
# Create the Coverage Badge
- name: Make Badge
uses: schneegans/[email protected]
with:
# GIST_TOKEN is a GitHub personal access token with scope "gist".
auth: ${{ secrets.GIST_TOKEN }}
gistID: chastencodecoverage
filename: covbadge.json
label: Coverage
message: ${{ env.total }}%
minColorRange: 50
maxColorRange: 90
valColorRange: ${{ env.total }}

0 comments on commit a5d5507

Please sign in to comment.