Skip to content

Commit 5558924

Browse files
committed
[Auto-commit] fix: robustly patch authors block in pyproject.toml for all generated clients
1 parent 1266732 commit 5558924

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-sdk.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939
sed -i "s/license=.*/license='MIT',/g" "$d/setup.py"
4040
fi
4141
if [ -f "$d/pyproject.toml" ]; then
42-
sed -i "s/^authors = .*/authors = ['Letstream <support@theletstream.com>']/g" "$d/pyproject.toml"
42+
# Replace the authors block (multi-line)
43+
sed -i "/^authors = \\[/,/^\\]/c\\authors = [\\n {name = 'Letstream', email = 'support@theletstream.com'},\\n]" "$d/pyproject.toml"
44+
# Replace the license line
4345
sed -i "s/^license = .*/license = 'MIT'/g" "$d/pyproject.toml"
4446
fi
4547
done

0 commit comments

Comments
 (0)