diff --git a/.github/workflows/star-history.yml b/.github/workflows/star-history.yml
index e67a0517..b7d90c43 100644
--- a/.github/workflows/star-history.yml
+++ b/.github/workflows/star-history.yml
@@ -48,7 +48,14 @@ jobs:
echo "Downloaded SVG is suspiciously small; aborting." >&2
exit 1
fi
- mv assets/star-history.svg.new assets/star-history.svg
+ # The star-history API returns the SVG without a trailing newline,
+ # which end-of-file-fixer rewrites whenever pre-commit runs
+ # --all-files on a PR. Because the refresh commit below uses [skip ci],
+ # the hook never runs against it here, so an un-normalized file
+ # silently breaks the pre-commit check on every open PR. Normalize to
+ # exactly one trailing newline before committing.
+ printf '%s\n' "$(cat assets/star-history.svg.new)" > assets/star-history.svg
+ rm -f assets/star-history.svg.new
- name: Commit if changed
run: |
diff --git a/assets/star-history.svg b/assets/star-history.svg
index 246ba5a0..3f6c4a04 100644
--- a/assets/star-history.svg
+++ b/assets/star-history.svg
@@ -1 +1 @@
-
\ No newline at end of file
+star-history.comMay 17May 24100200300400kaelio/ktxStar HistoryDateGitHub Stars