Skip to content

Commit 74b4a55

Browse files
knowledgecodeclaude
andcommitted
Create badges directory before badge generation
Move mkdir -p badges command before the badge generation step to prevent ENOENT error when creating coverage.svg file. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2afee2f commit 74b4a55

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ jobs:
5454
run: |
5555
echo "pct=$(jq '.total.lines.pct' coverage/coverage-summary.json)" >> $GITHUB_OUTPUT
5656
57+
- name: Create badges directory
58+
run: mkdir -p badges
59+
5760
- name: Generate coverage badge
5861
uses: emibcn/badge-action@v2.0.3
5962
with:
@@ -67,7 +70,6 @@ jobs:
6770
run: |
6871
git config --local user.email "action@github.com"
6972
git config --local user.name "GitHub Action"
70-
mkdir -p badges
7173
git add badges/coverage.svg
7274
git diff --staged --quiet || git commit -m "Update coverage badge"
7375
git push

0 commit comments

Comments
 (0)