ci: do not mark script changes as doc-only

Changes in scripts will affect the CI jobs as the scripts are used while
deploying minikube, Rook and other components. These changes need
testing, just like anything else.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2020-11-25 08:40:07 +01:00 committed by mergify[bot]
parent 7c6dbfdb8e
commit 5db647ba64

View File

@ -12,15 +12,12 @@ CHANGED_FILES=$(git diff --name-only "${GIT_SINCE}")
skip=0 skip=0
#files to be skipped #files to be skipped
declare -a FILES=(^docs/ .md$ ^scripts/ LICENSE .mergify.yml .github .gitignore .commitlintrc.yml) declare -a FILES=(^docs/ .md$ LICENSE .mergify.yml .github .gitignore .commitlintrc.yml)
function check_file_present() { function check_file_present() {
local file=$1 local file=$1
for FILE in "${FILES[@]}"; do for FILE in "${FILES[@]}"; do
if [[ $file =~ $FILE ]]; then if [[ $file =~ $FILE ]]; then
if [[ $file =~ (minikube.sh|travis-functest.sh) ]]; then
continue
fi
return 0 return 0
fi fi
done done