Skip to content

Commit ed96763

Browse files
committed
Merge remote-tracking branch 'upstream/test-redirect-gh-action' into regex
2 parents 7b1bf8c + 57a47f6 commit ed96763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/add-redirects.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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 -qx "$redirect" $REDIRECTS_FILE; then
88+
if ! grep -qE "${redirect//\//\\/}$" "$REDIRECTS_FILE"; then
8989
deleted_redirects+="<li>[&lt;v&gt;-*]: $redirect</li>"
9090
fi
9191
done

0 commit comments

Comments
 (0)