mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
ci(prettier): show diff if prettier made changes (#30798)
This commit is contained in:
parent
3681b2a945
commit
463f8f2ded
1 changed files with 7 additions and 1 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
@ -260,7 +260,13 @@ jobs:
|
|||
key: prettier-main-cache
|
||||
|
||||
- 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
|
||||
if: github.event_name == 'push'
|
||||
|
|
Loading…
Reference in a new issue