Skip to content

Commit fd13d29

Browse files
ZePan110JoshuaL3000
authored andcommitted
Fix the issue of exiting due to inability to find hyperlinks (opea-project#929)
Signed-off-by: ZePan110 <ze.pan@intel.com>
1 parent cb3564e commit fd13d29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pr-path-detection.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ jobs:
5959
fail="FALSE"
6060
merged_commit=$(git log -1 --format='%H')
6161
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
62+
if [ -n "$changed_files" ]; then
6363
for changed_file in $changed_files; do
6464
echo $changed_file
65-
url_lines=$(grep -H -Eo '\]\(http[s]?://[^)]+\)' "$changed_file" | grep -Ev 'GenAIExamples/blob/main')
65+
url_lines=$(grep -H -Eo '\]\(http[s]?://[^)]+\)' "$changed_file" | grep -Ev 'GenAIExamples/blob/main') || true
6666
if [ -n "$url_lines" ]; then
6767
for url_line in $url_lines; do
6868
echo $url_line

0 commit comments

Comments
 (0)