-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (32 loc) · 1022 Bytes
/
poeditor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: POEditor
on:
push:
branches:
- master
paths:
- "**.py"
- "**.po"
- ".github/workflows/poeditor.yml"
jobs:
upload:
name: Upload latest locale terms to POEditor
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@master
- uses: actions/setup-python@v2
- name: Install dependencies
run: |
python -m pip install Babel python-telegram-bot requests
- name: Generate latest locales
run: sh utils/update_locale_data.cmd
- name: Upload latest locale terms and delete outdated to POEditor
run: cd locales && python upload_to_poeditor.py
env:
POEDITOR_TOKEN: ${{ secrets.POEDITOR_TOKEN }}
POEDITOR_ID: ${{ secrets.POEDITOR_ID }}
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT: ${{ secrets.TELEGRAM_CHAT }}