Skip to content

Commit a519bbc

Browse files
Update update.yml
1 parent 8ecaa6b commit a519bbc

File tree

1 file changed

+1
-48
lines changed

1 file changed

+1
-48
lines changed

.github/workflows/update.yml

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,7 @@ jobs:
3535
uses: actions/setup-python@v2
3636
with:
3737
python-version: '3.9'
38-
- name: Install dependencies
39-
run: |
40-
sudo apt update -y && sudo apt install gettext -y
41-
pip3 install --upgrade pip
42-
pip3 install -r requirements.txt -r cpython/Doc/requirements.txt
43-
- name: Update translations
44-
run: |
45-
sh scripts/update.sh
46-
env:
47-
TX_TOKEN: ${{ secrets.TX_TOKEN }}
48-
LANGUAGE: ${{ env.LANGUAGE }}
49-
- name: Wrap catalog message files
50-
run: |
51-
powrap --modified
52-
- name: Commit and push changes
53-
if: github.repository == 'python/python-docs-ja'
54-
run: |
55-
git config user.name github-actions
56-
git config user.email github-actions@github.com
57-
git status
58-
git add -A
59-
git diff-index --quiet HEAD || ( git commit -m "Update translations from Transifex" && git push )
38+
6039

6140
merge:
6241
# Merge translations previously updated into older branches to make sure
@@ -88,29 +67,3 @@ jobs:
8867
with:
8968
ref: ${{ matrix.branch }}
9069
path: ${{ matrix.branch }}
91-
- name: Install dependencies
92-
run: |
93-
sudo apt update -y && sudo apt install gettext -y
94-
pip3 install pomerge powrap
95-
- name: Merge overwriting on stable release branch
96-
if: ${{ matrix.overwrite == true }}
97-
run: |
98-
pomerge --from ${{ env.CURRENT_BRANCH }}/**/*.po --to ${{ matrix.branch }}/**/*.po
99-
- name: Merge without overwriting on EOL or security-fix release branch
100-
if: ${{ matrix.overwrite != true }}
101-
run: |
102-
pomerge --no-overwrite --from ${{ env.CURRENT_BRANCH }}/**/*.po --to ${{ matrix.branch }}/**/*.po
103-
- name: Wrap catalog message files
104-
run: |
105-
powrap --modified -C ${{ matrix.branch }}
106-
- name: Commit and push changes
107-
if: github.repository == 'rffontenelle/python-docs-pt-br'
108-
run: |
109-
cd ${{ matrix.branch }}
110-
git config user.name github-actions
111-
git config user.email github-actions@github.com
112-
git status
113-
git add -A
114-
git diff-index --quiet HEAD || ( git commit -m "Merge ${{ env.CURRENT_BRANCH }} into ${{ matrix.branch }}" && git push )
115-
116-

0 commit comments

Comments
 (0)