Skip to content

Commit 8538488

Browse files
committed
Merge remote-tracking branch 'upstream/test-redirect-gh-action' into regex
2 parents d7069ea + c0690ff commit 8538488

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/add-redirects.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ jobs:
2727
run: |
2828
renamed_redirects=""
2929
for file in $RENAMED_FILES; do
30-
if (! grep -s "includes/" <<< "$file") &&
31-
(! grep -s "images/" <<< "$file") &&
32-
(! grep -s "examples/" <<< "$file"); then
30+
if (grep -s "source/" <<< "$file") &&
31+
(grep -s "\.txt$" <<< "$file"); then
3332
old=$(echo "$file" | cut -d',' -f1)
3433
old="${old#source}"
3534
old="${old%.txt}"

0 commit comments

Comments
 (0)