mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
ci: show pre-commit diff on failure
Sometimes the change done by pre-commit are not obvious, this should help.
This commit is contained in:
@@ -7,7 +7,7 @@ pre-commit:
|
|||||||
variables:
|
variables:
|
||||||
PRE_COMMIT_HOME: /pre-commit-cache
|
PRE_COMMIT_HOME: /pre-commit-cache
|
||||||
script:
|
script:
|
||||||
- pre-commit run --all-files
|
- pre-commit run --all-files --show-diff-on-failure
|
||||||
cache:
|
cache:
|
||||||
key: pre-commit-all
|
key: pre-commit-all
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
Reference in New Issue
Block a user