Skip to content

Commit

Permalink
[732] Use Crowdin CLI instead of action on macOS runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Clstroud committed Aug 9, 2024
1 parent 8d8e6cc commit fa87ace
Showing 1 changed file with 30 additions and 17 deletions.
47 changes: 30 additions & 17 deletions .github/workflows/update_crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,36 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Upload Translations
uses: crowdin/github-action@v2
with:
upload_sources: true
upload_translations: false
download_translations: true
download_bundle: 6
localization_branch_name: crowdin/update-translations-bundle
create_pull_request: false

- name: Install Crowdin CLI
run: brew tap crowdin/crowdin;brew install crowdin@4
shell: sh

- name: Upload Sources
run: >
crowdin upload sources
--dry-run
env:
GITHUB_TOKEN: ${{ secrets.CROWDIN_GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
GITHUB_TOKEN: ${{ secrets.CROWDIN_GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

# - name: Upload Translations
# uses: crowdin/github-action@v2
# with:
# upload_sources: true
# upload_translations: false
# download_translations: true
# download_bundle: 6
# localization_branch_name: crowdin/update-translations-bundle
# create_pull_request: false
# env:
# GITHUB_TOKEN: ${{ secrets.CROWDIN_GITHUB_TOKEN }}
# CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
# CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

- name: Import Translations
uses: ./.github/workflows/actions/run_lane
with:
lane: xliff_import
# - name: Import Translations
# uses: ./.github/workflows/actions/run_lane
# with:
# lane: xliff_import

0 comments on commit fa87ace

Please sign in to comment.