Skip to content

Commit 0a05e1c

Browse files
committed
[SPARK-52412][INFRA][FOLLOW-UP] Skip empty patterns when redacting
### What changes were proposed in this pull request? This PR is a followup of #51102 that skips empty strings. ### Why are the changes needed? To make dry runs passing. It's broken https://github.com/apache/spark/actions/runs/15515989616/job/43682941208 ### Does this PR introduce _any_ user-facing change? No, dev-only. ### How was this patch tested? Manually tested. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #51118 from HyukjinKwon/SPARK-52412-followup. Authored-by: Hyukjin Kwon <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
1 parent 73de7cc commit 0a05e1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,9 @@ jobs:
236236
[ -f "$file" ] || continue
237237
cp "$file" "$file.bak"
238238
for pattern in "${PATTERNS[@]}"; do
239+
[ -n "$pattern" ] || continue # Skip empty patterns
239240
regex="${pattern//\*/.*}"
240-
sed -i "s/$regex/***/g" "$file"
241+
sed -i "s|$regex|***|g" "$file"
241242
done
242243
done
243244

0 commit comments

Comments
 (0)