Skip to content

Commit 82ddc7e

Browse files
committed
test
1 parent 1c16f07 commit 82ddc7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/add-redirects.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
redirect='${prefix}/${version}'"$old"'/ -> ${base}/${version}'"$new"'/'
5656
5757
# if redirect not already in file, add to string to add to PR description
58-
if ! grep -qx "$redirect" $REDIRECTS_FILE; then
58+
if ! grep -q "$redirect" $REDIRECTS_FILE; then
5959
renamed_redirects+="<li>[&lt;v&gt;-*]: $redirect</li>"
6060
fi
6161
done
@@ -85,7 +85,7 @@ jobs:
8585
redirect='${prefix}/${version}'"$old"'/ -> ${base}/${version}/'
8686
8787
# if redirect not already in file, add to string to add to PR description
88-
if ! grep -qE "${redirect//\//\\/}$" $REDIRECTS_FILE; then
88+
if ! grep -q "$redirect" $REDIRECTS_FILE && [[ "$redirect" != *'${base}/${version}/' ]]; then
8989
deleted_redirects+="<li>[&lt;v&gt;-*]: $redirect</li>"
9090
fi
9191
done

0 commit comments

Comments
 (0)