GHActions: Improve failure message for prettier lint failures

This commit is contained in:
TellowKrinkle 2023-09-09 00:47:21 -05:00 committed by TellowKrinkle
parent a28328dd96
commit c9099f3a2f
1 changed files with 6 additions and 1 deletions

View File

@ -35,4 +35,9 @@ jobs:
- name: Check Formatting
run: |
prettier --check ./bin/resources/GameIndex.yaml
if ! prettier --check bin/resources/GameIndex.yaml; then
prettier --write bin/resources/GameIndex.yaml
echo "Prettier failed, diff:"
git diff bin/resources/GameIndex.yaml
exit 1
fi