Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b40b5b2

Browse files
authored
Commit
1 parent e01effb commit b40b5b2

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

.github/scripts/prepare.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
set -ex
44

5-
git clone --depth=1 --branch="$VERSION" https://github.com/python/cpython cpython
6-
git clone --branch="$VERSION" https://github.com/"$GITHUB_REPOSITORY" docs
7-
85
pip3 install --user setuptools
96
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
107
sudo apt-get update

.github/scripts/update.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
22

3-
tx=$(realpath ./tx)
43
cd docs || exit 1
5-
$tx pull --languages "$LOCALE" -t --use-git-timestamps
4+
$(realpath ../tx) pull --languages "$LOCALE" -t --use-git-timestamps --worker 25

.github/workflows/python-312.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,18 @@ jobs:
1414
LOCALE: zh_CN
1515
VERSION: "3.12"
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v3
18+
- name: Checkout CPython
19+
uses: actions/checkout@v3
20+
with:
21+
repository: 'python/cpython'
22+
ref: ${{env.VERSION}}
23+
path: cpython
24+
- name: Checkout Current Files
25+
uses: actions/checkout@v3
26+
with:
27+
ref: ${{env.VERSION}}
28+
path: docs
1829
- name: prepare
1930
run: .github/scripts/prepare.sh
2031
- name: update

0 commit comments

Comments
 (0)