Skip to content

Commit a949992

Browse files
committed
update for fix
Signed-off-by: chensuyue <suyue.chen@intel.com>
1 parent 12c92ba commit a949992

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pr-link-scan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ jobs:
100100
branch="https://github.com/$REPO_NAME/blob/$HEAD_REF"
101101
102102
merged_commit=$(git log -1 --format='%H')
103-
changed_files="$(git diff --name-status --diff-filter=ARM $BASE_SHA ${merged_commit} | awk '/\.md$/ {print $NF}' | grep -Ev 'shape=' )"
104-
png_lines=$(grep -Eo '\]\([^)]+\)' --include='*.md' -r .|grep -Ev 'http')
103+
changed_files="$(git diff --name-status --diff-filter=ARM $BASE_SHA ${merged_commit} | awk '/\.md$/ {print $NF}')"
104+
png_lines=$(grep -Eo '\]\([^)]+\)' --include='*.md' -r .|grep -Ev 'http' | grep -Ev 'shape=')
105105
if [ -n "$png_lines" ]; then
106106
for png_line in $png_lines; do
107107
refer_path=$(echo "$png_line"|cut -d':' -f1 | cut -d'/' -f2-)

0 commit comments

Comments
 (0)