diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 9ad4d4e4..c6eedb8d 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -32,7 +32,7 @@ jobs: export PATH=$PATH:$(go env GOPATH)/bin helm-docs git update-index --ignore-submodules --refresh - if ! git diff-files --quiet --ignore-submodules -- ; then + if ! git diff --exit-code ; then echo Generating documentation caused a change - did you forget to run 'helm-docs' before commit? exit 1 fi