From 256e6db158fc97863c8abe0795085b753cf8b054 Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Mon, 18 Apr 2022 13:41:28 +0200 Subject: [PATCH] :wrench: Use new color range feature of dynamic-badges-action --- .github/workflows/badges.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/badges.yml b/.github/workflows/badges.yml index 7a43da6..2b29dd2 100644 --- a/.github/workflows/badges.yml +++ b/.github/workflows/badges.yml @@ -17,9 +17,9 @@ jobs: - name: Get the Numbers run: | echo "CODE_LINES=$(scripts/cloc.sh --loc)" >> $GITHUB_ENV - echo "COMMENT_LINES=$(scripts/cloc.sh --percentage)%" >> $GITHUB_ENV + echo "COMMENT_LINES=$(scripts/cloc.sh --percentage)" >> $GITHUB_ENV - name: Create Lines-of-Code-Badge - uses: schneegans/dynamic-badges-action@v1.2.0 + uses: schneegans/dynamic-badges-action@master with: auth: ${{ secrets.GIST_SECRET }} gistID: 8cf45f23253ff09b21196e7271378762 @@ -29,12 +29,14 @@ jobs: color: lightgrey labelColor: 303030 - name: Create Comments-Badge - uses: schneegans/dynamic-badges-action@v1.2.0 + uses: schneegans/dynamic-badges-action@master with: auth: ${{ secrets.GIST_SECRET }} gistID: 8cf45f23253ff09b21196e7271378762 filename: comments.json label: Comments - message: ${{ env.COMMENT_LINES }} - color: green + message: ${{ env.COMMENT_LINES }}% + valColorRange: ${{ env.COMMENT_LINES }} + maxColorRange: 50 + minColorRange: 0 labelColor: 303030