Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
ffcea638
Unverified
Commit
ffcea638
authored
May 29, 2021
by
Moody Salem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(ci): separate sources upload and translations download workflows
parent
408a07eb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
9 deletions
+35
-9
crowdin-sync.yaml
.github/workflows/crowdin-sync.yaml
+31
-0
crowdin.yaml
.github/workflows/crowdin.yaml
+4
-9
No files found.
.github/workflows/crowdin-sync.yaml
0 → 100644
View file @
ffcea638
name
:
Crowdin Download
# hourly we sync translations from Crowdin
on
:
schedule
:
-
cron
:
'
0
*
*
*
*'
# every hour we download translations and update the pr from crowdin
# manual trigger
workflow_dispatch
:
jobs
:
download-translations
:
name
:
Download translations
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Synchronize
uses
:
crowdin/github-action@1.1.0
with
:
upload_sources
:
false
download_translations
:
true
project_id
:
458284
token
:
${{ secrets.CROWDIN_PERSONAL_TOKEN_SECRET }}
translation
:
'
src/locales/%locale%.po'
pull_request_title
:
"
chore(i18n):
synchronize
translations
from
crowdin"
commit_message
:
"
chore(i18n):
synchronize
translations
from
crowdin"
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
.github/workflows/crowdin.yaml
View file @
ffcea638
name
:
Crowdin
name
:
Crowdin
Upload
# on any push to main, we upload the translations to be translated
on
:
push
:
branches
:
-
main
# manual trigger
workflow_dispatch
:
jobs
:
synchronize-with-crowdin
:
name
:
Synchronize with
Crowdin
name
:
Upload sources to
Crowdin
runs-on
:
ubuntu-latest
steps
:
...
...
@@ -33,12 +31,9 @@ jobs:
uses
:
crowdin/github-action@1.1.0
with
:
upload_sources
:
true
download_translations
:
tru
e
download_translations
:
fals
e
project_id
:
458284
token
:
${{ secrets.CROWDIN_PERSONAL_TOKEN_SECRET }}
source
:
'
src/locales/en-US.po'
translation
:
'
src/locales/%locale%.po'
pull_request_title
:
"
chore(i18n):
synchronize
translations
from
crowdin"
commit_message
:
"
chore(i18n):
synchronize
translations
from
crowdin"
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
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