Skip to content

Commit f68d6fa

Browse files
committed
fix(ci): format sponsor files before change detection
Pre-format files so lint-staged doesn't cause empty commit errors.
1 parent 758f70f commit f68d6fa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/update-sponsors.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,14 @@ jobs:
6262
run: |
6363
pnpm install --frozen-lockfile
6464
65+
- name: Format sponsor files
66+
run: |
67+
pnpm exec oxfmt packages/docs/.vitepress/theme/components/sponsors.json README.md
68+
6569
- name: Check for changes
6670
id: sponsors-after
6771
run: |
68-
if git diff --quiet; then
72+
if git diff --quiet -- packages/docs/.vitepress/theme/components/sponsors.json README.md; then
6973
echo "changed=false" >> "$GITHUB_OUTPUT"
7074
else
7175
echo "changed=true" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)