Skip to content

Commit

Permalink
Merge pull request #138 from YoYoGames/fix.triggering.repo
Browse files Browse the repository at this point in the history
this change can now trigger single repo, everytime we trigger all repos but some reason if we wanted to trigger a single repo we can do that now
  • Loading branch information
gurpreetsinghmatharoo authored Jul 2, 2024
2 parents 5cd19e6 + 775ddf7 commit 00b8bc1
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/trigger-all-localisation-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
- lts
- build
COUNTRY:
description: "Select individual language to build"
description: "Select individual Country to build"
required: false
type: choice
options:
Expand All @@ -36,29 +36,34 @@ on:

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
- name: Invoke Localisation Workflows
if: ${{ github.event.inputs.Language }} == 'SINGLE'
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
continue-on-error: false



0 comments on commit 00b8bc1

Please sign in to comment.