File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,8 @@ commands:
167
167
if [[ "$BRANCH" != "master" ]] && [[ "$BRANCH" != "release/*" ]]; then
168
168
# We know that we have checked out the PR merge branch, so the HEAD commit is a merge
169
169
# As a backup, if anything goes wrong with the diff, the build will fail
170
- CHANGED_FILES=$(git show HEAD | grep -e "^Merge:" | cut -d ' ' -f 2- | sed 's/ /.../' | xargs git diff --name-only)
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)
171
172
# Count the number of matches, and ignore if the grep doesn't match anything
172
173
MATCH_COUNT=$(echo "$CHANGED_FILES" | grep -c -E "<< pipeline.parameters.global_pattern >>|<< parameters.pattern >>") || true
173
174
if [[ "$MATCH_COUNT" -eq "0" ]]; then
You can’t perform that action at this time.
0 commit comments