diff --git a/src/scripts/monorepo/exec_command.sh b/src/scripts/monorepo/exec_command.sh index 85ba3364..c6b0a38f 100644 --- a/src/scripts/monorepo/exec_command.sh +++ b/src/scripts/monorepo/exec_command.sh @@ -12,7 +12,11 @@ jq -rc '.workspaces[]' package.json | while read -r i; do # The find command add the ./ We dont need it. This command removes it by removing the first 2 characters. package="${f:2}" echo "Checking package $package" - if [[ $FILES_CHANGED == *"$package"* || " master production staging trying " =~ .*\ $CIRCLE_BRANCH\ .* || -n "$CIRCLE_TAG" ]] || (( FORCE_EXECUTION )); then + if [[ + $FILES_CHANGED == *"$package"* + || "${CIRCLE_BRANCH}" =~ ^(master|production|trying|staging|gtmq_.*)$ + || -n "$CIRCLE_TAG" + ]] || (( FORCE_EXECUTION )); then # Work only on folders that are real packages if [[ -d $f ]]; then ( @@ -25,4 +29,4 @@ jq -rc '.workspaces[]' package.json | while read -r i; do fi fi done -done \ No newline at end of file +done