Skip to content

Commit 8d7edb9

Browse files
authored
Chain push translation template workflow after experimental release (#54644)
1 parent aeb7f24 commit 8d7edb9

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

.github/workflows/push-translation-template.yml

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,19 @@ name: "Push translation template"
33
concurrency: push_transifex
44

55
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
1710

1811

1912
jobs:
2013
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' }}
2319
steps:
2420
- name: "Install dependencies"
2521
run: |
@@ -45,11 +41,8 @@ jobs:
4541
- name: "Push translation template to Transifex server"
4642
uses: nick-invision/retry@v2
4743
with:
48-
timeout_minutes: 10
49-
max_attempts: 5
44+
timeout_minutes: 5
45+
max_attempts: 3
5046
retry_on: error
5147
command: |
5248
tx push --source --no-interactive --resource cataclysm-dda.master-cataclysm-dda
53-
- name: Sleep for 5 minutes
54-
run: sleep 5m
55-
shell: bash

0 commit comments

Comments
 (0)