forked from python/python-docs-tr
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.5 KB
/
update_doc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 "[email protected]"
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/[email protected]
with:
token: ${{ secrets.BOT_PAT }}
commit-message: Get changes from CPython Doc for ${{ github.ref_name }}
author: python-docs-turkish <[email protected]>
committer: python-docs-turkish <[email protected]>
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