File tree Expand file tree Collapse file tree 3 files changed +34
-10
lines changed Expand file tree Collapse file tree 3 files changed +34
-10
lines changed Original file line number Diff line number Diff line change 1
- name : Crowdin Action
1
+ name : Crowdin Upload
2
2
3
3
on :
4
4
push :
5
5
branches : [ gh-pages ]
6
- workflow_dispatch :
7
6
8
- permissions : write-all
7
+ # Cancel in progress workflows
8
+ # in the scenario where we already had a run going for that branch/tag but then triggered a new run
9
+ concurrency :
10
+ group : " ${{ github.workflow }} ✨ ${{ github.head_ref || github.ref }}"
11
+ cancel-in-progress : true
9
12
10
13
jobs :
11
14
synchronize-with-crowdin :
20
23
with :
21
24
upload_sources : true
22
25
upload_translations : false
23
- download_translations : true
24
- localization_branch_name : l10n
25
- create_pull_request : true
26
- pull_request_title : ' New Crowdin Translations'
27
- pull_request_body : ' New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
28
- pull_request_base_branch_name : ' gh-pages'
29
- base_url : ' https://express.api.crowdin.com'
26
+ download_translations : false
30
27
env :
31
28
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32
29
CROWDIN_PROJECT_ID : ${{ secrets.CROWDIN_PROJECT_ID }}
Original file line number Diff line number Diff line change 36
36
labels : doc
37
37
team_reviewers : expressjs/docs-captains
38
38
branch : external-docs-${{ github.sha }}
39
+
40
+ synchronize-with-crowdin :
41
+ runs-on : ubuntu-latest
42
+ if : github.repository_owner == 'expressjs'
43
+ steps :
44
+ - name : Checkout
45
+ uses : actions/checkout@v4
46
+ # see all the options at https://github.com/crowdin/github-action
47
+ - name : Crowdin PR
48
+ uses : crowdin/github-action@v2
49
+ with :
50
+ # do not upload anything - this is a one-way operation download
51
+ upload_sources : false
52
+ upload_translations : false
53
+ # the rest of this controls how the PR comes in with new translations
54
+ download_translations : true
55
+ localization_branch_name : crowdin/translations
56
+ create_pull_request : true
57
+ pull_request_title : ' New Crowdin Translations'
58
+ pull_request_body : >
59
+ New Crowdin translations from the [express.js crowdin project](https://express.crowdin.com/u/projects/1). cc: @expressjs/docs-wg
60
+ pull_request_base_branch_name : ' gh-pages'
61
+ env :
62
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
63
+ CROWDIN_PROJECT_ID : ${{ secrets.CROWDIN_PROJECT_ID }}
64
+ CROWDIN_PERSONAL_TOKEN : ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
Original file line number Diff line number Diff line change 8
8
preserve_hierarchy : true
9
9
project_id_env : CROWDIN_PROJECT_ID
10
10
api_token_env : CROWDIN_PERSONAL_TOKEN
11
+ base_url : " https://express.api.crowdin.com"
You can’t perform that action at this time.
0 commit comments