ci: fix UX for prettier failures (#9926)

This commit is contained in:
Erich Gubler authored and GitHub committed 2026-07-23 11:01:25 -07:00
1 parent d5977df452
commit bb8f23e343
1 file changed
+3 -1
+3 -1
View File
@@ -844,8 +844,10 @@ jobs:
rustup override set ${{ env.REPO_MSRV }}
cargo -V
# NOTE: Keep this above the others, because this will fail if there are _any_ changes to
# files, even ones this step doesn't modify.
- name: "Format `**/*.{md,js,html,yml}` files"
run: npx --yes prettier@3.8.1 --check .
run: "npx --yes prettier@3.8.1 --check --write . && git diff --exit-code"
- name: Run `cargo fmt`
run: |