Skip to content

Add an action to sync latest doc periodically #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Jan 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/update_doc.yml
Original file line number Diff line number Diff line change
@@ -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] <github-actions[bot]@users.noreply.github.com>
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ venv/
.DS_Store
.pospell/
.potodo/
.venv/
.venv/
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
poutils
sphinx
tqdm
pre-commit
polib
Expand Down