mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
ci(crowdin): init
Draft specification of the action
This commit is contained in:
parent
c0badbe96b
commit
eaed73f96f
1 changed files with 41 additions and 0 deletions
41
.github/workflows/crowdin.yml
vendored
Normal file
41
.github/workflows/crowdin.yml
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
name: Crowdin
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ dev ]
|
||||
paths:
|
||||
- "app/src/res/values/strings.xml"
|
||||
- ".github/workflows/crowdin.yml"
|
||||
schedule:
|
||||
- cron: "0 0 * * *"
|
||||
workflow_dispatch:
|
||||
|
||||
|
||||
jobs:
|
||||
synchronize-with-crowdin:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Crowdin action
|
||||
uses: crowdin/github-action@v1
|
||||
# TODO: Move to Crowdin configuration file
|
||||
with:
|
||||
upload_sources: true
|
||||
upload_translations: false
|
||||
download_translations: true
|
||||
localization_branch_name: crowdin_translations
|
||||
create_pull_request: true
|
||||
pull_request_title: 'chore(translation): sync translation with Crowdin'
|
||||
pull_request_body: 'Lorem, foobarit:tm:!'
|
||||
pull_request_labels: 'translation'
|
||||
pull_request_base_branch_name: 'dev'
|
||||
# TODO: add plurals.xml
|
||||
source: 'app/src/res/values/strings.xml'
|
||||
translation: 'app/src/res/values-%android_code%/strings.xml'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
Loading…
Reference in a new issue