From ffe0e69ca02c6fac26f04c38f6545da632d67e88 Mon Sep 17 00:00:00 2001 From: ZePan110 Date: Fri, 11 Oct 2024 09:28:03 +0800 Subject: [PATCH] Fix the issue of exiting due to inability to find hyperlinks. (#781) Signed-off-by: ZePan110 Co-authored-by: Hoong Tee, Yeoh --- .github/workflows/pr-dockerfile-path-scan.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-dockerfile-path-scan.yaml b/.github/workflows/pr-dockerfile-path-scan.yaml index c409a460d..dbd7c0821 100644 --- a/.github/workflows/pr-dockerfile-path-scan.yaml +++ b/.github/workflows/pr-dockerfile-path-scan.yaml @@ -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$//')