From 92643da976959ec543dc880ce7a1120b8ab8937d Mon Sep 17 00:00:00 2001 From: Charles Swartz Date: Sat, 14 Sep 2024 11:03:37 -0400 Subject: [PATCH] Update the `check_for_changes` job in CI (#1140) * Detect changes from the main branch --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2f83cda7a..6c1018337 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -9,7 +9,7 @@ jobs: name: Check for changes in specific paths command: | set +e - git diff --name-only HEAD^ HEAD | grep '^.ci\|^.circleci\|^graph_adapter_tests\|^hamilton\|^plugin_tests\|^tests\|^requirements\|setup' > /dev/null + git diff --name-only origin/main...HEAD | grep '^.ci\|^.circleci\|^graph_adapter_tests\|^hamilton\|^plugin_tests\|^tests\|^requirements\|setup' > /dev/null if [ $? -eq 0 ]; then echo "Changes found in target paths." echo 'true' > /tmp/changes_detected