We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81cea91 commit aaea780Copy full SHA for aaea780
.github/workflows/rubyonrails.yml
@@ -91,13 +91,15 @@ jobs:
91
92
- name: Generate coverage badge
93
if: ${{ github.ref == 'refs/heads/main' && success() }}
94
+ continue-on-error: true
95
run: |
96
COVERAGE=$(jq -r '.result.covered_percent' coverage/.last_run.json)
97
COLOR=$(node -e "cov=parseFloat(process.argv[1]);console.log(cov>=90?'green':cov>=75?'orange':'red')" $COVERAGE)
98
npx badgen-cli coverage ${COVERAGE}% -c $COLOR > coverage.svg
99
100
- name: Commit badge
101
102
103
uses: stefanzweifel/git-auto-commit-action@v5
104
with:
105
commit_message: "chore: update coverage badge"
0 commit comments