-
Notifications
You must be signed in to change notification settings - Fork 13
69 lines (62 loc) · 1.88 KB
/
trigger-all-localisation-builds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Trigger-Localisation-Builds
on:
workflow_dispatch:
inputs:
Language:
description: "Select All languages to build"
required: false
type: choice
options:
- ALL
- SINGLE
BUILD_TYPE:
description: "Select individual language to build"
required: true
type: choice
options:
- main
- lts
- build
COUNTRY:
description: "Select individual Country to build"
required: false
type: choice
options:
- PT-BR
- DE
- ES
- FR
- IT
- JA
- KO
- PL
- RU
- ZH
jobs:
Trigger-Localisation-Builds-All_Repo:
name: "Trigger-Localisation-Builds-All Repo"
runs-on: ubuntu-22.04
if: ${{ github.event.inputs.Language == 'ALL' }}
strategy:
matrix:
language: [PT-BR, DE, ES, FR, IT, JA, KO, PL, RU, ZH]
steps:
- name: Invoke Localisation Workflows for All repos
uses: benc-uk/workflow-dispatch@v1
with:
workflow: ${{ github.event.inputs.BUILD_TYPE }}.yml
repo: YoYoGames/GameMaker-Manual-${{ matrix.language }}
token: ${{ secrets.GH_TOKEN }}
continue-on-error: false
Trigger-Localisation-Builds-Single-Repo:
name: "Trigger-Localisation-Builds-Single-Repo"
runs-on: ubuntu-22.04
if: ${{ github.event.inputs.Language == 'SINGLE' }}
steps:
- name: Invoke Localisation Workflow for Single repo
uses: benc-uk/workflow-dispatch@v1
with:
workflow: ${{ github.event.inputs.BUILD_TYPE }}.yml
repo: YoYoGames/GameMaker-Manual-${{ github.event.inputs.COUNTRY }}
token: ${{ secrets.GH_TOKEN }}
continue-on-error: false