Skip to content

[WIP] Add update.yml #32

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 2 commits into from
Jan 12, 2022
Merged
Changes from 1 commit
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
Next Next commit
[WIP] Add update.yml
  • Loading branch information
cocoatomo authored Dec 30, 2021
commit 9f749f364c4a73fef3006b8caaefdfdee979ae43
42 changes: 42 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -1 +1,43 @@
name: Sync po files

on:
schedule:
- cron: "0 9 * * *"

env:
# branch name of python-docs-ja repository
DOCS_BRANCH: "3.10"
# branch name of cpython repository
CPYTHON_BRANCH: "3.10"
# branch name of cpython-doc-catalog repository
CATALOG_BRANCH: "catalog-3.10"
# Transifex project name
TRANSIFEX_PROJECT: "python-newest"
# Directory where repositories are cloned
BASEDIR: "$(dirname ${TRAVIS_BUILD_DIR})"

jobs:
main:
name: Sync po/pot fiels
runs-on: ubuntu-latest
steps:
- name: Check out the repo
- uses: actions/checkout@v2

- name: Setup Python
- uses: actions/setup-python@v2.3.1
with:
python-version: "3.10"
architecture: "x64"

- name: Install packages
run: |
pip install sphinx sphinx-intl blurb trasifex-client

- name: Run scripts
run: |
bash ${TRAVIS_BUILD_DIR}/scripts/prepare-build_3.10
bash ${TRAVIS_BUILD_DIR}/scripts/upload-catalog
bash ${TRAVIS_BUILD_DIR}/scripts/renew-catalog-template