CI: Make prettier print the diff on error (#4479)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
This commit is contained in:
Mm2PL 2023-03-26 13:42:04 +02:00 committed by GitHub
parent 1fbbef34bf
commit f7ac526c35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,4 +22,7 @@ jobs:
uses: actionsx/prettier@e90ec5455552f0f640781bdd5f5d2415acb52f1a uses: actionsx/prettier@e90ec5455552f0f640781bdd5f5d2415acb52f1a
with: with:
# prettier CLI arguments. # prettier CLI arguments.
args: --check . args: --write .
- name: Show diff
run: git --no-pager diff --exit-code --color=never
shell: bash