File tree Expand file tree Collapse file tree 1 file changed +11
-18
lines changed Expand file tree Collapse file tree 1 file changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -3,23 +3,19 @@ name: "Push translation template"
3
3
concurrency : push_transifex
4
4
5
5
on :
6
- push :
7
- branches :
8
- - master
9
- paths :
10
- - ' **.json'
11
- - ' src/**.cpp'
12
- - ' src/**.h'
13
- - ' lang/extract_json_strings.py'
14
- - ' lang/strip_line_numbers.py'
15
- - ' lang/update_pot.sh'
16
- - ' lang/unicode_check.py'
6
+ workflow_run :
7
+ workflows : ["Experimental Release"]
8
+ types :
9
+ - completed
17
10
18
11
19
12
jobs :
20
13
push-template :
21
- if : github.repository == 'CleverRaven/Cataclysm-DDA'
22
- runs-on : ubuntu-20.04
14
+ runs-on : ubuntu-latest
15
+ if : >
16
+ ${{ github.event.workflow_run.event == 'push' &&
17
+ github.event.workflow_run.conclusion == 'success' &&
18
+ github.repository == 'CleverRaven/Cataclysm-DDA' }}
23
19
steps :
24
20
- name : " Install dependencies"
25
21
run : |
45
41
- name : " Push translation template to Transifex server"
46
42
uses : nick-invision/retry@v2
47
43
with :
48
- timeout_minutes : 10
49
- max_attempts : 5
44
+ timeout_minutes : 5
45
+ max_attempts : 3
50
46
retry_on : error
51
47
command : |
52
48
tx push --source --no-interactive --resource cataclysm-dda.master-cataclysm-dda
53
- - name : Sleep for 5 minutes
54
- run : sleep 5m
55
- shell : bash
You can’t perform that action at this time.
0 commit comments