🔧 Use new color range feature of dynamic-badges-action

This commit is contained in:
Simon Schneegans
2022-04-18 13:41:28 +02:00
parent e0aebca055
commit 256e6db158
+7 -5
View File
@@ -17,9 +17,9 @@ jobs:
- name: Get the Numbers - name: Get the Numbers
run: | run: |
echo "CODE_LINES=$(scripts/cloc.sh --loc)" >> $GITHUB_ENV 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 - name: Create Lines-of-Code-Badge
uses: schneegans/dynamic-badges-action@v1.2.0 uses: schneegans/dynamic-badges-action@master
with: with:
auth: ${{ secrets.GIST_SECRET }} auth: ${{ secrets.GIST_SECRET }}
gistID: 8cf45f23253ff09b21196e7271378762 gistID: 8cf45f23253ff09b21196e7271378762
@@ -29,12 +29,14 @@ jobs:
color: lightgrey color: lightgrey
labelColor: 303030 labelColor: 303030
- name: Create Comments-Badge - name: Create Comments-Badge
uses: schneegans/dynamic-badges-action@v1.2.0 uses: schneegans/dynamic-badges-action@master
with: with:
auth: ${{ secrets.GIST_SECRET }} auth: ${{ secrets.GIST_SECRET }}
gistID: 8cf45f23253ff09b21196e7271378762 gistID: 8cf45f23253ff09b21196e7271378762
filename: comments.json filename: comments.json
label: Comments label: Comments
message: ${{ env.COMMENT_LINES }} message: ${{ env.COMMENT_LINES }}%
color: green valColorRange: ${{ env.COMMENT_LINES }}
maxColorRange: 50
minColorRange: 0
labelColor: 303030 labelColor: 303030