Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jul 3, 2024
2 parents 776ac67 + 00b8bc1 commit db5455e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 19 deletions.
64 changes: 46 additions & 18 deletions .github/workflows/trigger-all-localisation-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,66 @@ on:
workflow_dispatch:
inputs:
Language:
description: "Select All languages to build"
required: false
type: choice
options:
- ALL
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

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:
name:
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
if: ${{ github.event.inputs.Language }} == 'ALL'
- 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
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



2 changes: 1 addition & 1 deletion .github/workflows/trigger-all-sync-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
token: ${{ secrets.GH_TOKEN }}
continue-on-error: false
- name: Invoke Localisation Workflows
if: ${{ matrix.language }} == ''
if: ${{ github.event.inputs.COUNTRY }} == ''
uses: benc-uk/workflow-dispatch@v1
with:
workflow: sync.yml
Expand Down

0 comments on commit db5455e

Please sign in to comment.