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() {
51
51
local patterns=(" $@ " )
52
52
local files_found=" "
53
53
for pattern in " ${patterns[@]} " ; do
54
+ echo " Checking pattern: $pattern "
54
55
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 "
56
61
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 "
58
67
fi
59
68
done
60
69
You can’t perform that action at this time.
0 commit comments