Skip to content

Commit

Permalink
chore(Crowdin): Update branches and wrap ENVs in quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ushie committed Nov 11, 2023
1 parent edb3634 commit 8abbb07
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/sync-crowdin.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: Crowdin Action

on:
push:
branches: [ feat/i10n ]
push:
branches: [feat/i10n]

jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
synchronize-with-crowdin:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
steps:
- name: Checkout
uses: actions/checkout@v4

- name: crowdin action
uses: crowdin/github-action@v1
with:
config: crowdin.yml
upload_sources: true
upload_translations: false
download_translations: true
localization_branch_name: feat/translations
create_pull_request: true
pull_request_title: 'chore(i18n): Sync translations'
pull_request_body: 'Sync translations from [Crowdin/ReVanced](https://crowdin.com/project/revanced)'
pull_request_base_branch_name: 'dev'
commit_message: 'chore(i18n): Sync translations for %language%'
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: crowdin action
uses: crowdin/github-action@v1
with:
config: crowdin.yml
upload_sources: true
upload_translations: false
download_translations: true
localization_branch_name: feat/translations
create_pull_request: true
pull_request_title: "chore(i18n): Sync translations"
pull_request_body: "Sync translations from [Crowdin/ReVanced](https://crowdin.com/project/revanced)"
pull_request_base_branch_name: "feat/i10n"
commit_message: "chore(i18n): Sync translations"
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
4 changes: 2 additions & 2 deletions crowdin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project_id_env: CROWDIN_PROJECT_ID
api_token_env: CROWDIN_PERSONAL_TOKEN
project_id_env: "CROWDIN_PROJECT_ID"
api_token_env: "CROWDIN_PERSONAL_TOKEN"

preserve_hierarchy: true
files:
Expand Down

0 comments on commit 8abbb07

Please sign in to comment.