Skip to content

Commit

Permalink
Updated github action to install crowdin cli
Browse files Browse the repository at this point in the history
  • Loading branch information
max-barrera-2148 committed Sep 24, 2024
1 parent 0a196a4 commit 40f4c63
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,21 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install unzip utility
run: sudo apt-get install unzip

- name: Install Crowdin CLI
run: |
curl -s https://api.crowdin.com/downloads/cli/v3/crowdin-cli.zip -o crowdin-cli.zip
curl -s https://downloads.crowdin.com/cli/v3/crowdin-cli.zip -o crowdin-cli.zip
unzip crowdin-cli.zip -d crowdin-cli
sudo mv crowdin-cli/crowdin /usr/local/bin/
- name: Crowdin Sync
run: |
crowdin upload sources \
--project-id 683600 \
--token ${{ secrets.CROWDIN_API_TOKEN }} \
--preserve-hierarchy true \
--files 'i18n/en/**/*:/i18n/%two_letters_code%/**/%original_file_name%' \
--files 'docs/**/*:/i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name%' \
--files 'changelog/**/*:/i18n/%two_letters_code%/docusaurus-plugin-content-blog-changelog/**/%original_file_name%'
--project-id 683600 \
--token ${{ secrets.CROWDIN_API_TOKEN }} \
--preserve-hierarchy true \
--files 'i18n/en/**/*:/i18n/%two_letters_code%/**/%original_file_name%' \
--files 'docs/**/*:/i18n/%two_letters_code%/docusaurus-plugin-content-docs/current/**/%original_file_name%' \
--files 'changelog/**/*:/i18n/%two_letters_code%/docusaurus-plugin-content-blog-changelog/**/%original_file_name%'

0 comments on commit 40f4c63

Please sign in to comment.