Skip to content

Commit

Permalink
Do the badge stuff on failure too
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolasan authored Nov 27, 2023
1 parent cf17726 commit be4fbed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
ratiogenerator/build/test-results/**/*.xml
- name: Set badge color
if: always()
shell: bash
run: |
case ${{ fromJSON( steps.test-results.outputs.json ).conclusion }} in
Expand All @@ -69,6 +70,7 @@ jobs:
- name: Create badge
uses: emibcn/badge-action@d6f51ff11b5c3382b3b88689ae2d6db22d9737d1
if: always()
with:
label: Tests
status: '${{ fromJSON( steps.test-results.outputs.json ).formatted.stats.tests }} tests, ${{ fromJSON( steps.test-results.outputs.json ).formatted.stats.runs }} runs: ${{ fromJSON( steps.test-results.outputs.json ).conclusion }}'
Expand Down

0 comments on commit be4fbed

Please sign in to comment.