Skip to content

Commit 47d668d

Browse files
committed
ci: dynamic badge gist
1 parent 5c9295c commit 47d668d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/coverage-badge.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,15 @@ jobs:
3838
- name: Print the coverage percentage for testing
3939
run: |
4040
echo "The coverage percentage is ${{ steps.coverage-extractor.outputs.COVERAGE }}"
41+
42+
- name: Update dynamic badge gist
43+
uses: schneegans/[email protected]
44+
with:
45+
auth: ${{ secrets.GIST_SECRET }}
46+
gistID: e115a2922ddd4f9f897b6e2c15d6c071 # https://gist.github.com/EchoEllet/e115a2922ddd4f9f897b6e2c15d6c071
47+
filename: native-image-picker-macos-coverage-badge.json
48+
label: coverage
49+
message: ${{ steps.coverage-extractor.outputs.COVERAGE }}%
50+
valColorRange: ${{ steps.coverage-extractor.outputs.COVERAGE }}
51+
minColorRange: 0
52+
maxColorRange: 100

0 commit comments

Comments
 (0)