build(ci): Provide diff for pre-commit failures (#25638)

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref
2023-10-13 14:00:09 -04:00
committed by GitHub
parent 9074f72959
commit 5054b9fade

View File

@@ -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