mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-26 01:10:39 +00:00
added github workflows
This commit is contained in:
parent
32ad2b44dd
commit
9773586fa3
2 changed files with 62 additions and 0 deletions
33
.github/workflows/crowdin_pull.yml
vendored
Normal file
33
.github/workflows/crowdin_pull.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
name: Crowdin pull
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
repository_dispatch:
|
||||||
|
types: [crowdin-webhook]
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
env:
|
||||||
|
REPO_TOKEN: ${{ secrets.REPO_TOKEN }}
|
||||||
|
CROWDIN_PROJECT_ID: 567473
|
||||||
|
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }}
|
||||||
|
jobs:
|
||||||
|
download-translations:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout main branch
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Download
|
||||||
|
uses: crowdin/github-action@1.5.0
|
||||||
|
with:
|
||||||
|
crowdin_branch_name: main
|
||||||
|
upload_sources: false
|
||||||
|
upload_translations: false
|
||||||
|
download_translations: true
|
||||||
|
skip_untranslated_strings: true
|
||||||
|
export_only_approved: true
|
||||||
|
push_translations: true
|
||||||
|
localization_branch_name: main-l10n
|
||||||
|
create_pull_request: true
|
||||||
|
pull_request_base_branch_name: main
|
29
.github/workflows/crowdin_push.yml
vendored
Normal file
29
.github/workflows/crowdin_push.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
name: Crowdin push
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
env:
|
||||||
|
REPO_TOKEN: ${{ secrets.REPO_TOKEN }}
|
||||||
|
CROWDIN_PROJECT_ID: 567473
|
||||||
|
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }}
|
||||||
|
jobs:
|
||||||
|
upload-files:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout main branch
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Upload
|
||||||
|
uses: crowdin/github-action@1.5.0
|
||||||
|
with:
|
||||||
|
crowdin_branch_name: main
|
||||||
|
upload_sources: true
|
||||||
|
upload_sources_args: "--delete-obsolete"
|
||||||
|
upload_translations: true
|
||||||
|
import_eq_suggestions: true
|
||||||
|
auto_approve_imported: false
|
||||||
|
add_crowdin_branch: main
|
Loading…
Reference in a new issue