Skip to content

Commit 43ab3d8

Browse files
committed
Merge remote-tracking branch 'upstream/test-redirect-gh-action' into regex
2 parents c6f8a33 + da83cb2 commit 43ab3d8

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 -q "$redirect" $REDIRECTS_FILE; then
58+
if ! grep -qx "$redirect" $REDIRECTS_FILE; then
5959
renamed_redirects+="<li>[&lt;v&gt;-*]: $redirect</li>"
6060
echo "${renamed_redirects}"
6161
fi
@@ -86,7 +86,7 @@ jobs:
8686
redirect='${prefix}/${version}'"$old"'/ -> ${base}/${version}/'
8787
8888
# if redirect not already in file, add to string to add to PR description
89-
if ! grep -q "$redirect" $REDIRECTS_FILE; then
89+
if ! grep -qx "$redirect" $REDIRECTS_FILE; then
9090
deleted_redirects+="<li>[&lt;v&gt;-*]: $redirect</li>"
9191
echo "${deleted_redirects}"
9292
fi

0 commit comments

Comments
 (0)