build: fix check if test-intg-downstream could be skipped
fix a ci issue with checking if the react/src/shared directory is changed or not.
the existing conditional failed if any other webui directory had changes in it but
not if these changes were outside the webui dir.
@@ -137,7 +137,8 @@ commands:
command: |
MERGE_BASE="$(git merge-base upstream/master HEAD)"
DIFF_DIRS="$(git diff-tree --no-commit-id --name-only "$MERGE_BASE":webui/react/src HEAD:webui/react/src)"
- if [ "$DIFF_DIRS" = "shared" ] ; then
+ # check "shared" is in the list of changed directories
+ if [[ "$DIFF_DIRS" == *"shared"* ]]; then
echo "shared code changed, running downstream test"
else
echo "shared code not affected, halting job now"
