Skip to content
Snippets Groups Projects
Unverified Commit 463f8f2d authored by Oluf Lorenzen's avatar Oluf Lorenzen Committed by GitHub
Browse files

ci(prettier): show diff if prettier made changes (#30798)

parent 3681b2a9
No related branches found
No related tags found
No related merge requests found
...@@ -260,7 +260,13 @@ jobs: ...@@ -260,7 +260,13 @@ jobs:
key: prettier-main-cache key: prettier-main-cache
- name: Lint - name: Lint
run: pnpm prettier --cache-location .cache/prettier run: |
pnpm prettier --write --cache-location .cache/prettier
git diff --quiet || {
echo "[ERROR] Please apply the changes prettier suggests:"
git diff --color=always
exit 1
}
- name: Remove cache - name: Remove cache
if: github.event_name == 'push' if: github.event_name == 'push'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment