1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00

fix travis 2.0

This commit is contained in:
aireilly
2023-10-11 21:32:08 +01:00
committed by openshift-cherrypick-robot
parent 00b7470594
commit 712adea4fd
2 changed files with 2 additions and 9 deletions

View File

@@ -3,14 +3,8 @@
# Returns a list of updated _topic_map.yml files.
# The list includes any topic maps that are themselves modified, and indirectly modifed topic maps where incldued AsciiDoc files have been updated.
# Handle the git diff differently for Travis and local
# Get the *.adoc and distro maps files in the pull request
if [ "$TRAVIS" = true ] ; then
FILES=$(git diff --name-only HEAD $TRAVIS_BRANCH --diff-filter=d "*.yml" "*.adoc" ':(exclude)_unused_topics/*')
else
FILES=$(git diff --name-only HEAD@{1} --diff-filter=d "*.yml" "*.adoc" ':(exclude)_unused_topics/*')
fi
FILES=$(git diff --name-only HEAD@{1} --diff-filter=d "*.yml" "*.adoc" ':(exclude)_unused_topics/*')
REPO_PATH=$(git rev-parse --show-toplevel)