CircleCI: Filter out Makefile in files and src directories when checking for modified...
authorTed Hess <thess@kitschensync.net>
Sat, 29 Dec 2018 17:36:16 +0000 (12:36 -0500)
committerTed Hess <thess@kitschensync.net>
Sat, 29 Dec 2018 17:47:45 +0000 (12:47 -0500)
Signed-off-by: Ted Hess <thess@kitschensync.net>
.circleci/config.yml

index 8fc53ba68262a6a4f6233f059322315ce0971708..2919fae304b6e70b035405920ab18f301fd6e21e 100644 (file)
@@ -91,7 +91,7 @@ jobs:
           working_directory: ~/build_dir
           command: |
              set +o pipefail
-             PKGS=$(cd ~/openwrt_packages; git diff --diff-filter=d --name-only "origin/$BRANCH..." | grep 'Makefile$' | grep -v '/files/' | awk -F/ '{ print $(NF-1) }')
+             PKGS=$(cd ~/openwrt_packages; git diff --diff-filter=d --name-only "origin/$BRANCH..." | grep 'Makefile$' | grep -Ev '/files/|/src/' | awk -F/ '{ print $(NF-1) }')
              if [ -z "$PKGS" ] ; then
                  echo_blue "WARNING: No new or modified packages found!"
                  exit 0