fix(ci) make the "dirty git tree" CI failure clearer

Print the git diff output in the step which fails.
This commit is contained in:
Saúl Ibarra Corretgé 2022-03-31 09:48:56 +02:00 committed by Дамян Минков
parent ec0e824a43
commit d2c4e81e25
1 changed files with 1 additions and 3 deletions

View File

@ -16,10 +16,8 @@ jobs:
run: git status
- name: Normalize lang files to ensure sorted
run: npm run lang-sort
- name: Check git diff
run: git diff
- name: Check if the git repository is clean
run: exit $( git status --porcelain --untracked-files=no | head -255 | wc -l )
run: $(exit $(git status --porcelain --untracked-files=no | head -255 | wc -l)) || (echo "Dirty git tree"; git diff; exit 1)
- run: npm run lint
- run: for file in lang/*.json; do npx --yes jsonlint -q $file || exit 1; done
- run: make