Skip to content

Commit 563e84f

Browse files
authored
[WIP] Add update.yml (#32)
* [WIP] Add update.yml * Get rid of unnecessary files
1 parent 8b82639 commit 563e84f

File tree

8 files changed

+42
-64
lines changed

8 files changed

+42
-64
lines changed

.github/workflows/update.yml

+42
Original file line numberDiff line numberDiff line change
@@ -1 +1,43 @@
1+
name: Sync po files
12

3+
on:
4+
schedule:
5+
- cron: "0 9 * * *"
6+
7+
env:
8+
# branch name of python-docs-ja repository
9+
DOCS_BRANCH: "3.10"
10+
# branch name of cpython repository
11+
CPYTHON_BRANCH: "3.10"
12+
# branch name of cpython-doc-catalog repository
13+
CATALOG_BRANCH: "catalog-3.10"
14+
# Transifex project name
15+
TRANSIFEX_PROJECT: "python-newest"
16+
# Directory where repositories are cloned
17+
BASEDIR: "$(dirname ${TRAVIS_BUILD_DIR})"
18+
19+
jobs:
20+
main:
21+
name: Sync po/pot fiels
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Check out the repo
25+
- uses: actions/checkout@v2
26+
27+
- name: Setup Python
28+
- uses: actions/setup-python@v2.3.1
29+
with:
30+
python-version: "3.10"
31+
architecture: "x64"
32+
33+
- name: Install packages
34+
run: |
35+
pip install sphinx sphinx-intl blurb trasifex-client
36+
37+
- name: Run scripts
38+
run: |
39+
bash ${TRAVIS_BUILD_DIR}/scripts/prepare-build_3.10
40+
bash ${TRAVIS_BUILD_DIR}/scripts/upload-catalog
41+
bash ${TRAVIS_BUILD_DIR}/scripts/renew-catalog-template
42+
43+

scripts/determine-build-type

-17
This file was deleted.

scripts/pr-merge/main.sh

-5
This file was deleted.

scripts/pr/main.sh

-5
This file was deleted.

scripts/push/main.sh

-6
This file was deleted.

scripts/push/prepare-build_3.10

-31
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)