From d2c4e81e2577207ce5b36850f5cd733312f4be0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 31 Mar 2022 09:48:56 +0200 Subject: [PATCH] fix(ci) make the "dirty git tree" CI failure clearer Print the git diff output in the step which fails. --- .github/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 782e1fccbb..8a8ed21e5a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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