We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb3564e commit fd13d29Copy full SHA for fd13d29
.github/workflows/pr-path-detection.yml
@@ -59,10 +59,10 @@ jobs:
59
fail="FALSE"
60
merged_commit=$(git log -1 --format='%H')
61
changed_files="$(git diff --name-status --diff-filter=ARM ${{ github.event.pull_request.base.sha }} ${merged_commit} | awk '/\.md$/ {print $NF}')"
62
- if [ -n "changed_files" ]; then
+ if [ -n "$changed_files" ]; then
63
for changed_file in $changed_files; do
64
echo $changed_file
65
- url_lines=$(grep -H -Eo '\]\(http[s]?://[^)]+\)' "$changed_file" | grep -Ev 'GenAIExamples/blob/main')
+ url_lines=$(grep -H -Eo '\]\(http[s]?://[^)]+\)' "$changed_file" | grep -Ev 'GenAIExamples/blob/main') || true
66
if [ -n "$url_lines" ]; then
67
for url_line in $url_lines; do
68
echo $url_line
0 commit comments