Skip to content

Commit c9091d9

Browse files
committed
Fix typeshed-sync workflow
we need to either cd into the Ruff repo or use `-C` here to push to the upstream branch. An oversight in 8d7d021
1 parent 8d7d021 commit c9091d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/sync_typeshed.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ jobs:
8989
- name: Push the changes
9090
id: commit
9191
if: ${{ success() }}
92-
run: git push --force --set-upstream origin "${UPSTREAM_BRANCH}"
92+
run: git -C ruff push --force --set-upstream origin "${UPSTREAM_BRANCH}"
9393

9494
# Checkout the branch created by the sync job,
9595
# and sync all docstrings available on Windows that are not available on Linux.

scripts/codemod_docstrings.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818

1919
set -eu
2020

21-
docstring_adder="git+https://github.com/astral-sh/docstring-adder.git@7f350b03ee83dd44ebd8010228ad3dfca34a7887"
21+
docstring_adder="git+https://github.com/astral-sh/docstring-adder.git@513b650c8c6b0f1bb6f12d8f79da9294614214e4"
2222
stdlib_path="./crates/ty_vendored/vendor/typeshed/stdlib"
2323

2424
for python_version in 3.14 3.13 3.12 3.11 3.10 3.9
2525
do
26-
uvx --python="$python_version" --force-reinstall --from="${docstring_adder}" add-docstrings --stdlib-path="${stdlib_path}"
26+
PYTHONUTF8=1 uvx --python="$python_version" --force-reinstall --from="${docstring_adder}" add-docstrings --stdlib-path="${stdlib_path}"
2727
done

0 commit comments

Comments
 (0)