forked from crowdin/github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
120 lines (112 loc) · 3.83 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: 'crowdin-action'
description: 'This action allows you to manage and synchronize localization resources with your Crowdin project'
branding:
icon: 'refresh-cw'
color: 'green'
inputs:
# upload sources option
upload_sources:
description: 'Upload sources to Crowdin'
default: 'true'
required: true
# upload translations options
upload_translations:
description: 'Upload translations to Crowdin'
default: 'false'
required: true
upload_language:
description: 'Use this option to upload translations for a single specified language'
required: false
auto_approve_imported:
description: 'Automatically approves uploaded translations'
default: 'false'
required: true
import_eq_suggestions:
description: 'Defines whether to add translation if it is equal to source string in Crowdin project'
default: 'false'
required: true
# download translations options
download_translations:
description: 'Make pull request of Crowdin translations'
default: 'false'
required: true
download_language:
description: 'Use this option to download translations for a single specified language'
required: false
skip_untranslated_strings:
description: 'Skip untranslated strings in exported files (does not work with .docx, .html, .md and other document files)'
default: 'false'
required: true
skip_untranslated_files:
description: 'Omit downloading not fully downloaded files'
default: 'false'
required: true
export_only_approved:
description: 'Include approved translations only in exported files. If not combined with --skip-untranslated-strings option, strings without approval are fulfilled with the source language'
default: 'false'
required: true
push_translations:
description: 'Download translations with pushing to branch'
default: 'true'
required: true
commit_message:
description: 'Commit message for download translations'
default: 'New Crowdin translations by Github Action'
required: true
localization_branch_name:
description: 'To download translations to the specified version branch'
default: 'l10n_crowdin_action'
required: true
create_pull_request:
description: 'Create pull request after pushing to branch'
default: 'true'
required: true
pull_request_title:
description: 'The title of the new pull request'
default: 'New Crowdin translations by Github Action'
required: true
pull_request_body:
description: 'The contents of the pull request'
required: false
pull_request_labels:
description: 'To add labels for created pull request'
required: false
pull_request_base_branch_name:
description: 'Create pull request to specified branch instead of default one'
required: false
# global options
crowdin_branch_name:
description: 'Option to upload or download files to the specified version branch in your Crowdin project'
required: false
identity:
description: 'Option to specify a path to user-specific credentials'
required: false
config:
description: 'Option to specify a path to the configuration file'
required: false
dryrun_action:
description: 'Option to preview the list of managed files'
default: 'false'
required: true
# config options
project_id:
description: 'Numerical ID of the project'
required: false
token:
description: 'Personal access token required for authentication'
required: false
base_url:
description: 'Base URL of Crowdin server for API requests execution'
required: false
base_path:
description: 'Path to your project directory on a local machine'
required: false
source:
description: 'Path to the source files'
required: false
translation:
description: 'Path to the translation files'
required: false
runs:
using: docker
image: 'Dockerfile'