Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix.triggering.repo #139

Merged
merged 11 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:

RoboHelp:
name: "RoboHelp"
runs-on: windows-2019
runs-on: windows-2022
env:
LANGUAGE_MAIN: ${{ vars.LANGUAGE_MAIN }}
LANGUAGE: ${{ vars.LANGUAGE }}
steps:
- uses: aws-actions/configure-aws-credentials@v4
with:
Expand All @@ -26,7 +26,7 @@ jobs:
- name: Enable git long paths to bypass path limit on Windows
run: git config --system core.longpaths true
- name: Check out the GMS2_Documentation repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: Manual
token: ${{ secrets.GH_TOKEN }}
Expand All @@ -38,7 +38,7 @@ jobs:
shell: cmd
working-directory: Manual
- name: Upload robohelp zip file
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: YoYoStudioRoboHelp
path: output\RoboHelp\*.zip
Expand Down
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



56 changes: 56 additions & 0 deletions .github/workflows/trigger-all-sync-upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Trigger-Localisation-Upstream-Sync-Builds

on:
workflow_dispatch:
inputs:
Language:
description: "Select All languages to build"
required: false
type: choice
options:
- ALL
COUNTRY:
description: "Select individual language to build"
required: false
type: choice
options:
- PT-BR
- DE
- ES
- FR
- IT
- JA
- KO
- PL
- RU
- ZH


jobs:

Trigger-Localisation-Upstream-Sync:
name:
runs-on: ubuntu-22.04
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'
uses: benc-uk/workflow-dispatch@v1
with:
workflow: sync.yml
repo: YoYoGames/GameMaker-Manual-${{ matrix.language }}
token: ${{ secrets.GH_TOKEN }}
continue-on-error: false
- name: Invoke Localisation Workflows
if: ${{ github.event.inputs.COUNTRY }} == ''
uses: benc-uk/workflow-dispatch@v1
with:
workflow: sync.yml
repo: YoYoGames/GameMaker-Manual-${{ matrix.language }}
token: ${{ secrets.GH_TOKEN }}
continue-on-error: false



Loading