Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit f190d6a

Browse files
authored
fix script (#587)
1 parent 00de5f1 commit f190d6a

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

ci/docs-build-verification.sh

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,28 @@ TMP_DIR=$(mktemp -d)
4040

4141
# Go to a temporary directory and simulate the merge
4242
pushd ${TMP_DIR}
43+
4344
mkdir -p unity-gdk
4445
git clone ${CLONE_URL} unity-gdk
45-
popd unity-gdk
4646

47-
git checkout master
48-
git merge --no-commit --no-ff origin/${BRANCH_TO_TEST}
49-
CHANGED_FILES=$(git diff HEAD --name-only)
47+
pushd unity-gdk
48+
49+
git checkout master
50+
git merge --no-commit --no-ff origin/${BRANCH_TO_TEST}
51+
CHANGED_FILES=$(git diff HEAD --name-only)
52+
53+
NON_DOCS_FILES=()
54+
for file_path in ${CHANGED_FILES}
55+
do
56+
if ! isDocsFile ${file_path} ; then
57+
NON_DOCS_FILES+=(${file_path})
58+
fi
59+
done
60+
61+
popd
62+
63+
popd
5064

51-
NON_DOCS_FILES=()
52-
for file_path in ${CHANGED_FILES}
53-
do
54-
if ! isDocsFile ${file_path} ; then
55-
NON_DOCS_FILES+=(${file_path})
56-
fi
57-
done
5865

5966
if [ ${#NON_DOCS_FILES[@]} -ne 0 ]; then
6067
echo "Docs verification failed. The following files are not doc files:"

0 commit comments

Comments
 (0)