Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
92149c58
Unverified
Commit
92149c58
authored
Jul 10, 2020
by
Chi Song
Committed by
GitHub
Jul 10, 2020
Browse files
Fix localization action (#2677)
parent
6096e89e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
.github/workflows/main.yml
.github/workflows/main.yml
+8
-3
No files found.
.github/workflows/main.yml
View file @
92149c58
...
@@ -11,7 +11,6 @@ on:
...
@@ -11,7 +11,6 @@ on:
-
'
**.md'
-
'
**.md'
-
'
**.rst'
-
'
**.rst'
-
'
/docs/en_US/**'
-
'
/docs/en_US/**'
-
'
.github/worklflows/**'
-
'
/crowdin.yml'
-
'
/crowdin.yml'
schedule
:
schedule
:
-
cron
:
'
*/30
*
*
*
*'
-
cron
:
'
*/30
*
*
*
*'
...
@@ -29,6 +28,12 @@ jobs:
...
@@ -29,6 +28,12 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
# get branch name
-
name
:
Get the current branch name
shell
:
bash
run
:
echo "::set-output name=branch::${GITHUB_REF#refs/heads/}"
id
:
branchname
# crowin-translation
# crowin-translation
-
name
:
crowdin-action
-
name
:
crowdin-action
uses
:
crowdin/github-action@1.0.8
uses
:
crowdin/github-action@1.0.8
...
@@ -54,11 +59,11 @@ jobs:
...
@@ -54,11 +59,11 @@ jobs:
# Download translations with pushing to branch
# Download translations with pushing to branch
push_translations
:
true
# optional, default is true
push_translations
:
true
# optional, default is true
# To download translations to the specified version branch
# To download translations to the specified version branch
localization_branch_name
:
l10n_${{
github.base_ref
}}
# optional, default is l10n_crowdin_action
localization_branch_name
:
l10n_${{
steps.branchname.outputs.branch
}}
# optional, default is l10n_crowdin_action
# Create pull request after pushing to branch
# Create pull request after pushing to branch
create_pull_request
:
false
# optional, default is true
create_pull_request
:
false
# optional, default is true
# Option to upload or download files to the specified version branch in your Crowdin project
# Option to upload or download files to the specified version branch in your Crowdin project
crowdin_branch_name
:
${{
github.base_ref
}}
# optional
crowdin_branch_name
:
${{
steps.branchname.outputs.branch
}}
# optional
# Option to specify a path to user-specific credentials
# Option to specify a path to user-specific credentials
# identity: # optional
# identity: # optional
# Option to specify a path to the configuration file
# Option to specify a path to the configuration file
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment