Skip to content

Commit

Permalink
Update workflow creating a dynamic coverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
easternkite committed Nov 29, 2024
1 parent d40aca2 commit a1faecd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/generage_coverage_badge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:

- name: Generate coverage output
run: |
./gradlew :eungabi:printCoverage --no-configuration-cache >> coverage.txt
echo "COVERAGE=$(<coverage.txt)%" >> cover-result.txt
./gradlew -q :eungabi:printCoverage --no-configuration-cache >> coverage.txt
echo "COVERAGE=$(<coverage.txt)" >> $GITHUB_ENV
- name: Update dynamic badge gist
uses: schneegans/[email protected]
Expand All @@ -38,7 +38,8 @@ jobs:
gistID: 9699425e3de326e1772351520d991821
filename: eungabi-coverage-badge.json
label: coverage
message: $(${{github.workspace}}/cover-result.txt)
message: ${{env.COVERAGE}}%
valColorRange: ${{env.COVERAGE}}
minColorRange: 0
maxColorRange: 100

Expand Down

0 comments on commit a1faecd

Please sign in to comment.