File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,8 +167,7 @@ commands:
167167 if [[ "$BRANCH" != "master" ]] && [[ "$BRANCH" != "release/*" ]]; then
168168 # We know that we have checked out the PR merge branch, so the HEAD commit is a merge
169169 # As a backup, if anything goes wrong with the diff, the build will fail
170- # Get list of changed files directly using git diff-tree to avoid issues with large binary files
171- CHANGED_FILES=$(git diff-tree --no-commit-id --name-only -r HEAD)
170+ CHANGED_FILES=$(git show HEAD | grep -e "^Merge:" | cut -d ' ' -f 2- | sed 's/ /.../' | xargs git diff --name-only)
172171 # Count the number of matches, and ignore if the grep doesn't match anything
173172 MATCH_COUNT=$(echo "$CHANGED_FILES" | grep -c -E "<< pipeline.parameters.global_pattern >>|<< parameters.pattern >>") || true
174173 if [[ "$MATCH_COUNT" -eq "0" ]]; then
You can’t perform that action at this time.
0 commit comments