From bb8f23e343cfc80048279b4caaabb63a5afab05b Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Thu, 23 Jul 2026 14:01:25 -0400 Subject: [PATCH] ci: fix UX for `prettier` failures (#9926) --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c2e05019..c75d47744 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: |