Skip to content

Commit ad69e3a

Browse files
committed
Merge remote-tracking branch 'upstream/test-redirect-gh-action' into regex
2 parents 0471fd1 + abf4cef commit ad69e3a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/add-redirects.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,10 @@ jobs:
5656
5757
# if redirect not already in file, add to string to add to PR description
5858
if ! grep -q "$redirect" $REDIRECTS_FILE; then
59-
renamed_redirects+="$redirect,"
59+
renamed_redirects+='<li>[&lt;v&gt;-*]: ${prefix}/${version}'"$old"'/ -> ${base}/${version}'"$new"'/</li>'
6060
fi
6161
done
6262
63-
# cut trailing comma
64-
renamed_redirects="${renamed_redirects%,}"
65-
6663
echo "redirects=${renamed_redirects}" >> "$GITHUB_OUTPUT"
6764
6865
- name: Find Missing Redirects for Deleted Files

0 commit comments

Comments
 (0)