Fix the issue of exiting due to inability to find hyperlinks. (#781)

Signed-off-by: ZePan110 <ze.pan@intel.com>
Co-authored-by: Hoong Tee, Yeoh <hoong.tee.yeoh@intel.com>
This commit is contained in:
ZePan110
2024-10-11 09:28:03 +08:00
committed by GitHub
parent 84374a5710
commit ffe0e69ca0

View File

@@ -181,7 +181,7 @@ jobs:
if [ -n "$changed_files" ]; then
for changed_file in $changed_files; do
echo $changed_file
url_lines=$(grep -H -Eo '\]\(http[s]?://[^)]+\)' "$changed_file" | grep -Ev 'GenAIComps/blob/main')
url_lines=$(grep -H -Eo '\]\(http[s]?://[^)]+\)' "$changed_file" | grep -Ev 'GenAIComps/blob/main') || true
if [ -n "$url_lines" ]; then
for url_line in $url_lines; do
url=$(echo "$url_line"|cut -d '(' -f2 | cut -d ')' -f1|sed 's/\.git$//')