-
-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (35 loc) · 1.17 KB
/
Copy pathcrowdin.yml
File metadata and controls
37 lines (35 loc) · 1.17 KB
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
35
36
37
name: Crowdin - Upload and Download strings
on:
push:
branches:
- master
paths:
- '**.py'
workflow_dispatch:
jobs:
crowdin:
if: github.repository == 'PyLav/Red-Cogs'
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v6.0.3
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install redgettext==3.4.2
- name: Generate source files
run: |
python3.11 -m redgettext --command-docstrings --verbose --recursive .
- name: crowdin action
uses: crowdin/github-action@v2.16.3
with:
upload_sources: true
upload_translations: false
download_translations: true
pull_request_labels: i18n, translations, automerge
env:
CROWDIN_API_KEY: ${{ secrets.crowdin_token}}
CROWDIN_PROJECT_ID: ${{ secrets.crowdin_identifier }}
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}