Commit 2888b202 authored by Marcel Amirault's avatar Marcel Amirault

Make sure we only lint in /doc

parent 957bd3bc
...@@ -64,7 +64,7 @@ then ...@@ -64,7 +64,7 @@ then
echo "Merge request pipeline (detached) detected. Testing all files." echo "Merge request pipeline (detached) detected. Testing all files."
else else
MERGE_BASE=$(git merge-base ${CI_MERGE_REQUEST_TARGET_BRANCH_SHA} ${CI_MERGE_REQUEST_SOURCE_BRANCH_SHA}) MERGE_BASE=$(git merge-base ${CI_MERGE_REQUEST_TARGET_BRANCH_SHA} ${CI_MERGE_REQUEST_SOURCE_BRANCH_SHA})
MD_DOC_PATH=$(git diff --name-only "${MERGE_BASE}..${CI_MERGE_REQUEST_SOURCE_BRANCH_SHA}" '*.md') MD_DOC_PATH=$(git diff --name-only "${MERGE_BASE}..${CI_MERGE_REQUEST_SOURCE_BRANCH_SHA}" 'doc/*.md')
echo -e "Merged results pipeline detected. Testing only the following files:\n${MD_DOC_PATH}" echo -e "Merged results pipeline detected. Testing only the following files:\n${MD_DOC_PATH}"
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment