Skip to content

Commit 5ccf431

Browse files
committed
ci: fix error when ruff finds no issues
1 parent cd648ef commit 5ccf431

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
- name: Generate badge
8787
if: always()
8888
run: |
89-
VIOLATIONS=$(tail -1 ruff.txt | grep -oP '\d+')
89+
VIOLATIONS=$(tail -1 ruff.txt | grep -oP '\d+' || echo 0)
9090
if [ "$VIOLATIONS" -eq 0 ]; then
9191
uv run anybadge --label=ruff --value=passing --color=green --file=ruff.svg
9292
else

0 commit comments

Comments
 (0)