Skip to content

Commit

Permalink
Add Crowdin upload workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverviljamaa committed Sep 24, 2021
1 parent 8e3ae78 commit 3a92692
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
8 changes: 8 additions & 0 deletions workflow-templates/crowdin-upload.properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "Crowdin upload",
"description": "For uploading source messages to Crowdin.",
"iconName": "crowdin",
"filePatterns": [
"^crowdin.ya?ml$"
]
}
26 changes: 26 additions & 0 deletions workflow-templates/crowdin-upload.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Crowdin upload

on:
push:
branches-ignore:
- 'dependabot/**'
- 'dependabot-**'

jobs:
upload-to-crowdin:
runs-on: [self-hosted, production]
container: docker.tw.ee/actions_java15

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

- name: crowdin action
uses: crowdin/[email protected]
with:
upload_sources: true
upload_translations: false
download_translations: false
base_url: 'https://transferwise.crowdin.com'
token: ${{ secrets.CROWDIN_ENTERPRISE_TOKEN }}
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}

0 comments on commit 3a92692

Please sign in to comment.