Update Crowdin CLI to v3 (#6313)

This commit is contained in:
Jakub Kuczys 2024-03-21 23:14:46 +01:00 committed by GitHub
parent 273ad147c8
commit bc76d53cd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -19,7 +19,7 @@ jobs:
curl https://artifacts.crowdin.com/repo/GPG-KEY-crowdin | sudo apt-key add - curl https://artifacts.crowdin.com/repo/GPG-KEY-crowdin | sudo apt-key add -
echo "deb https://artifacts.crowdin.com/repo/deb/ /" | sudo tee -a /etc/apt/sources.list echo "deb https://artifacts.crowdin.com/repo/deb/ /" | sudo tee -a /etc/apt/sources.list
sudo apt-get update -qq sudo apt-get update -qq
sudo apt-get install -y crowdin sudo apt-get install -y crowdin3
pip install redgettext==3.4.2 pip install redgettext==3.4.2
- name: Generate source files - name: Generate source files
run: | run: |
@ -28,5 +28,5 @@ jobs:
run: | run: |
make upload_translations make upload_translations
env: env:
CROWDIN_API_KEY: ${{ secrets.crowdin_token}} CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.crowdin_identifier }} CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_IDENTIFIER }}

View File

@ -36,8 +36,8 @@ jobs:
run: | run: |
make download_translations make download_translations
env: env:
CROWDIN_API_KEY: ${{ secrets.crowdin_token}} CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.crowdin_identifier }} CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_IDENTIFIER }}
- name: Create Pull Request - name: Create Pull Request
id: cpr_crowdin id: cpr_crowdin

View File

@ -1,5 +1,5 @@
api_key_env: CROWDIN_API_KEY project_id_env: CROWDIN_PROJECT_ID
project_identifier_env: CROWDIN_PROJECT_ID api_token_env: CROWDIN_PERSONAL_TOKEN
base_path: ./redbot/ base_path: ./redbot/
preserve_hierarchy: true preserve_hierarchy: true
files: files: