Update Doc #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Doc | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 1 * *" | |
jobs: | |
create_pr: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Clone CPython Repo | |
run: git clone https://github.com/python/cpython venv/cpython | |
- name: Set Up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: pip install tqdm poutils -r venv/cpython/Doc/requirements.txt && sudo apt install gettext -y | |
- name: Run merge.py | |
run: python merge.py ${GITHUB_REF##*/} | |
- name: Commit changes | |
run: | | |
git config --local user.email "python.docs.tr@gmail.com" | |
git config --local user.name "python-docs-turkish" | |
git commit -m "Get changes from CPython Doc for ${{ github.ref_name }}" | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6.0.0 | |
with: | |
token: ${{ secrets.BOT_PAT }} | |
commit-message: Get changes from CPython Doc for ${{ github.ref_name }} | |
author: python-docs-turkish <python.docs.tr@gmail.com> | |
committer: python-docs-turkish <python.docs.tr@gmail.com> | |
branch: translation-update-${{ github.ref_name }} | |
delete-branch: true | |
title: Translation Update ${{ github.ref_name }} | |
body: There are some changes, don't forget to translate them! | |
labels: update | |
reviewers: | | |
egeakman | |
ardasak |