File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments