diff --git a/.ci-scripts/setup-integration-test.yml b/.ci-scripts/setup-integration-test.yml index 707367293463077bf215359f6908df669c480f2f..40c8465c576128f4608a5bb8360242a544ca8362 100644 --- a/.ci-scripts/setup-integration-test.yml +++ b/.ci-scripts/setup-integration-test.yml @@ -51,10 +51,10 @@ setup-integration-test: ## Detect modified tool # Ensure full history is available - - git fetch --unshallow || echo "Repository already has full history" + # - git fetch --unshallow || echo "Repository already has full history" - # Safely handle missing CI_COMMIT_BEFORE_SHA - - if [ -z "$CI_COMMIT_BEFORE_SHA" ] || ! git rev-parse "$CI_COMMIT_BEFORE_SHA" >/dev/null 2>&1; then echo "Previous commit SHA is not available. Using HEAD~1 for comparison."; CI_COMMIT_BEFORE_SHA=$(git rev-parse HEAD~1); fi + # # Safely handle missing CI_COMMIT_BEFORE_SHA + # - if [ -z "$CI_COMMIT_BEFORE_SHA" ] || ! git rev-parse "$CI_COMMIT_BEFORE_SHA" >/dev/null 2>&1; then echo "Previous commit SHA is not available. Using HEAD~1 for comparison."; CI_COMMIT_BEFORE_SHA=$(git rev-parse HEAD~1); fi # List all changed folders - CHANGED_FOLDERS=$(git diff --name-only $CI_COMMIT_BEFORE_SHA $CI_COMMIT_SHA | awk -F'/' '{print $1}' | sort | uniq)