Skip to content

Commit

Permalink
No-op for yamllint if no yaml files got changed
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
  • Loading branch information
vdemeester authored and tekton-robot committed Nov 14, 2019
1 parent 3e605bb commit 51c53a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/presubmit-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ function yaml_build_tests() {
for file in $(echo "${CHANGED_FILES}" | grep '\.yaml$\|\.yml$' | grep -v ^vendor/); do
[[ -f "${file}" ]] && yamlfiles="${yamlfiles} ${file}"
done
yamllint "${yamlfiles}"
[[ -z "${yamlfiles}" ]] && return 0
yamllint ${yamlfiles}
}

# Default build test runner that:
Expand Down

0 comments on commit 51c53a3

Please sign in to comment.