Skip to content

Commit e14cb09

Browse files
ErichDonGublerandyleiserson
authored andcommitted
ci: fix UX for prettier failures
(cherry picked from commit bb8f23e, PR #9926)
1 parent 3d359bc commit e14cb09

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,8 +816,10 @@ jobs:
816816
rustup override set ${{ env.REPO_MSRV }}
817817
cargo -V
818818
819+
# NOTE: Keep this above the others, because this will fail if there are _any_ changes to
820+
# files, even ones this step doesn't modify.
819821
- name: "Format `**/*.{md,js,html,yml}` files"
820-
run: npx --yes prettier@3.8.1 --check .
822+
run: "npx --yes prettier@3.8.1 --check --write . && git diff --exit-code"
821823

822824
- name: Run `cargo fmt`
823825
run: |

0 commit comments

Comments
 (0)