From 40f4c63646af03da79eb040f7d48ad706fdbc8d4 Mon Sep 17 00:00:00 2001 From: max-barrera-2148 Date: Tue, 24 Sep 2024 11:54:53 -0500 Subject: [PATCH] Updated github action to install crowdin cli --- .github/workflows/crowdin.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml index 3bc1efd9..f5a7da6c 100644 --- a/.github/workflows/crowdin.yml +++ b/.github/workflows/crowdin.yml @@ -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%' \ No newline at end of file