Skip to content

Commit

Permalink
Fail build if documentation is not updated
Browse files Browse the repository at this point in the history
`--quiet` option allows exiting with non-zero exit code if `git
diff-index` is failed. Withot the option, the build will be always
passed.
  • Loading branch information
extsoft committed Sep 15, 2019
1 parent 781ec6b commit a3377fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quality-pipeline.bash
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pipeline() {
(
./.wf/docs-generation.bash
git update-index --refresh
git diff-index HEAD --
git diff-index --quiet HEAD --
) || fail "The documentation is not up to date. Please run './.wf/docs-generation.bash' and commit the changes"

}
Expand Down

0 comments on commit a3377fc

Please sign in to comment.