diff --git a/.github/workflows/update_doc.yml b/.github/workflows/update_doc.yml new file mode 100644 index 000000000..22e9ab37d --- /dev/null +++ b/.github/workflows/update_doc.yml @@ -0,0 +1,41 @@ +name: Update Doc +on: + workflow_dispatch: + schedule: + - cron: '0 0 1 * *' + +jobs: + create_pr: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Clone CPython Repo + run: git clone https://github.com/python/cpython venv/cpython + + - name: Set Up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Install dependencies + run: pip install -r requirements.txt && sudo apt install gettext -y + + - name: Run merge.py + run: python merge.py ${GITHUB_REF##*/} + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v4.2.3 + with: + commit-message: Get changes from CPython Doc for ${{ github.ref_name }} + author: github-actions[bot] + committer: github-actions[bot] + 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 diff --git a/.gitignore b/.gitignore index 320d52bd5..c6e3f4e34 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,4 @@ venv/ .DS_Store .pospell/ .potodo/ -.venv/ \ No newline at end of file +.venv/ diff --git a/requirements.txt b/requirements.txt index 2eef180c1..e56fc0015 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ poutils +sphinx tqdm pre-commit polib