Skip to content

Commit

Permalink
Provide failure badge for documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Dec 14, 2023
1 parent de19434 commit 507045f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ jobs:
runs-on: ubuntu-latest

outputs:
total: ${{ steps.docblocks.outputs.total }}
documented: ${{ steps.docblocks.outputs.documented }}
badge: ${{ steps.docblocks.outputs.badge }}
badge: ${{ steps.docblocks.outputs.badge || steps.doc-failure.outputs.badge }}

steps:
- uses: actions/checkout@v4
Expand All @@ -106,6 +104,12 @@ jobs:
id: docblocks
run: dotnet tool update cranky -g && cranky --project ./StepLang/StepLang.csproj --github --set-exit-code --percentages 0,50

- name: Provide failure badge
id: doc-failure
if: failure()
run: |
echo "badge=https://img.shields.io/badge/Documentation%20Coverage-failed-red.svg?style=flat" >> "$GITHUB_OUTPUT"
report:
name: Report

Expand Down

0 comments on commit 507045f

Please sign in to comment.