We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c718602 commit 2a91903Copy full SHA for 2a91903
.github/workflows/pr-dockerfile-path-scan.yaml
@@ -134,12 +134,14 @@ jobs:
134
changed_files="$(git diff --name-status --diff-filter=DR ${{ github.event.pull_request.base.sha }} ${merged_commit} -- '**/Dockerfile**' | cut -f2)"
135
if [ -n "$changed_files" ]; then
136
for file in $changed_files; do
137
- matching_files=$(grep -rl "$file" ../GenAIExamples/**/*.md)
+ matching_files=$(grep -rl "$file" ../GenAIExamples/**/*.md) || true
138
if [ -n "$matching_files" ]; then
139
is_use="TRUE"
140
used_files+="$file "
141
echo "Modified Dockerfile '$file' is referenced in:"
142
echo "$matching_files"
143
+ else
144
+ echo "Modified Dockerfile '$file' is not referenced"
145
fi
146
done
147
0 commit comments