Skip to content

Commit 0cfe5c6

Browse files
Switch to version branch
1 parent 7c6d6f3 commit 0cfe5c6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/switcher-requirements-progress.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,14 @@ jobs:
3434
- name: Determine /3/ version and clone CPython
3535
run: |
3636
PYTHON_VERSION=$(curl -s https://docs.python.org/3/ | grep -oP 'Python \K\d+\.\d+' | head -1)
37+
echo "PYTHON_VERSION=$PYTHON_VERSION" >> $GITHUB_ENV
3738
git clone --branch "$PYTHON_VERSION" --single-branch --depth 1 https://github.com/python/cpython.git
3839
3940
- name: Clone translation
4041
run: |
4142
git clone https://github.com/python/python-docs-${{ matrix.language_code }}.git translation-repo
43+
cd translation-repo
44+
git switch "$PYTHON_VERSION" || echo "No translation branch $PYTHON_VERSION"
4245
4346
- name: Generate POT files
4447
run: |

0 commit comments

Comments
 (0)