File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 3
3
# Returns a list of updated _topic_map.yml files.
4
4
# The list includes any topic maps that are themselves modified, and indirectly modifed topic maps where incldued AsciiDoc files have been updated.
5
5
6
+ # Handle the git diff differently for Travis and local
6
7
# Get the *.adoc and distro maps files in the pull request
7
- FILES=$( git diff --name-only HEAD HEAD~$( git rev-list --count --no-merges origin/main..) --diff-filter=d " *.yml" " *.adoc" ' :(exclude)_unused_topics/*' )
8
+ if [ " $TRAVIS " = true ] ; then
9
+ FILES=$( git diff --name-only HEAD $TRAVIS_BRANCH --diff-filter=d " *.yml" " *.adoc" ' :(exclude)_unused_topics/*' )
10
+
11
+ else
12
+ FILES=$( git diff --name-only HEAD@{1} --diff-filter=d " *.yml" " *.adoc" ' :(exclude)_unused_topics/*' )
13
+ fi
14
+
8
15
REPO_PATH=$( git rev-parse --show-toplevel)
16
+
9
17
# Init an empty array
10
18
DISTROS=()
11
19
@@ -39,7 +47,7 @@ for ASSEMBLY in $ALL_ASSEMBLIES; do
39
47
fi
40
48
done
41
49
42
- # Handle modified topic maps
50
+ # Handle modified topic maps
43
51
UPDATED_DISTROS=$( echo " $FILES " | awk ' /_topic_maps\/(.*)\.yml/' )
44
52
# Concat all the updated topic maps
45
53
DISTROS+=(" ${UPDATED_DISTROS} " )
You can’t perform that action at this time.
0 commit comments