Skip to content

Commit 0b0fbb1

Browse files
knowledgecodeclaude
andcommitted
Change badge output directory to .github/badges/
Move coverage badge generation from badges/ to .github/badges/ to organize GitHub-related files in a conventional location. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9fa8757 commit 0b0fbb1

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,21 @@ jobs:
5555
echo "pct=$(jq '.total.lines.pct' coverage/coverage-summary.json)" >> $GITHUB_OUTPUT
5656
5757
- name: Create badges directory
58-
run: mkdir -p badges
58+
run: mkdir -p .github/badges
5959

6060
- name: Generate coverage badge
6161
uses: emibcn/badge-action@v2.0.3
6262
with:
6363
label: 'coverage'
6464
status: ${{ steps.coverage.outputs.pct }}%
6565
color: ${{ fromJSON(steps.coverage.outputs.pct) >= 80 && 'green' || fromJSON(steps.coverage.outputs.pct) >= 60 && 'yellow' || 'red' }}
66-
path: badges/coverage.svg
66+
path: .github/badges/coverage.svg
6767

6868
- name: Commit coverage badge
6969
run: |
7070
git config --local user.email "action@github.com"
7171
git config --local user.name "GitHub Action"
72-
git add badges/coverage.svg
72+
git add .github/badges/coverage.svg
7373
git diff --staged --quiet || git commit -m "Update coverage badge"
7474
git push
7575

badges/coverage.svg

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)