-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
36 lines (36 loc) · 1.17 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: 'Upload localization files'
description: 'Upload localization files to SimpleLocalize translation editor'
author: "SimpleLocalize"
branding:
icon: 'upload-cloud'
color: 'blue'
inputs:
apiKey:
description: 'Project API Key'
required: true
default: ''
uploadPath:
description: 'Which files should be uploaded'
required: false
default: './messages.json'
uploadFormat:
description: 'Choose a localization files format'
required: false
default: 'multi-language-json'
uploadOptions:
description: 'Choose additional upload options'
required: false
default: ''
languageKey:
description: 'Upload translations with language key'
required: false
default: ''
runs:
using: "composite"
steps:
- id: Setup
run: curl -s https://get.simplelocalize.io/2.1/install | bash
shell: bash
- id: Execution
shell: bash
run: simplelocalize upload --apiKey ${{ inputs.apiKey }} --uploadPath ${{ inputs.uploadPath }} --uploadFormat ${{ inputs.uploadFormat }} ${{ inputs.uploadOptions && '--uploadOptions' }} ${{ inputs.uploadOptions }} ${{ inputs.languageKey && '--languageKey' }} ${{ inputs.languageKey }}