From 5054b9fadeea28885526861e3c7db5ed0e36464b Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Fri, 13 Oct 2023 14:00:09 -0400 Subject: [PATCH] build(ci): Provide diff for pre-commit failures (#25638) Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- .github/workflows/superset-python-misc.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/superset-python-misc.yml b/.github/workflows/superset-python-misc.yml index a507467cad311..e42c743c9ec16 100644 --- a/.github/workflows/superset-python-misc.yml +++ b/.github/workflows/superset-python-misc.yml @@ -86,7 +86,12 @@ jobs: echo "HOMEBREW_REPOSITORY=$HOMEBREW_REPOSITORY" >>"${GITHUB_ENV}" brew install norwoodj/tap/helm-docs - name: pre-commit - run: pre-commit run --all-files + run: | + if ! pre-commit run --all-files; then + git status + git diff + exit 1 + fi babel-extract: runs-on: ubuntu-20.04