File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 27
27
28
28
- name : Check for changed Dockerfile paths in yaml
29
29
run : |
30
- set -xe
30
+ set -e
31
31
shopt -s globstar
32
32
cd ${{github.workspace}}
33
33
is_use="FALSE"
52
52
53
53
- name : Check for changed Dockerfile paths in readme
54
54
run : |
55
- set -xe
55
+ set -e
56
56
shopt -s globstar
57
57
cd ${{github.workspace}}
58
58
is_use="FALSE"
93
93
94
94
- name : Check for changed Dockerfile paths
95
95
run : |
96
- set -xe
96
+ set -e
97
97
shopt -s globstar
98
98
cd ${{github.workspace}}
99
99
is_use="FALSE"
@@ -102,9 +102,12 @@ jobs:
102
102
changed_files="$(git diff --name-status --diff-filter=DR ${{ github.event.pull_request.base.sha }} ${merged_commit} -- '**/Dockerfile' | cut -f2)"
103
103
if [ -n "$changed_files" ]; then
104
104
for file in $changed_files; do
105
- if grep -q "$file" ../GenAIExamples/**/*.md; then
105
+ matching_files=$(grep -rl "$file" ../GenAIExamples/**/*.md)
106
+ if [ -n "$matching_files" ]; then
106
107
is_use="TRUE"
107
108
used_files+="$file "
109
+ echo "Modified Dockerfile '$file' is referenced in:"
110
+ echo "$matching_files"
108
111
fi
109
112
done
110
113
fi
You can’t perform that action at this time.
0 commit comments