Skip to content

Commit e03cfbc

Browse files
committed
fix
1 parent e234002 commit e03cfbc

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/scripts/set_push_chunks.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,19 @@ check_files() {
5151
local patterns=("$@")
5252
local files_found=""
5353
for pattern in "${patterns[@]}"; do
54+
echo "Checking pattern: $pattern"
5455
if [[ $IS_PR != 'true' ]]; then
55-
files_found+="$(gh api repos/espressif/arduino-esp32/commits/"$GITHUB_SHA" --jq '.files[].filename' | grep -E "$pattern") "
56+
gh_output=$(gh api repos/espressif/arduino-esp32/commits/"$GITHUB_SHA" --jq '.files[].filename')
57+
echo "gh_output: $gh_output"
58+
matched_files=$(echo "$gh_output" | grep -E "$pattern")
59+
echo "matched_files: $matched_files"
60+
files_found+="$matched_files "
5661
else
57-
files_found+="$(gh pr diff "$PR_NUM" --name-only | grep -E "$pattern") "
62+
gh_output=$(gh pr diff "$PR_NUM" --name-only)
63+
echo "gh_output: $gh_output"
64+
matched_files=$(echo "$gh_output" | grep -E "$pattern")
65+
echo "matched_files: $matched_files"
66+
files_found+="$matched_files "
5867
fi
5968
done
6069

0 commit comments

Comments
 (0)