80 lines
2.4 KiB
YAML
80 lines
2.4 KiB
YAML
name: Trigger Child Workflows
|
|
|
|
on:
|
|
# Scan changed files in PRs, block on new issues only (existing issues ignored)
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
inputs:
|
|
environment:
|
|
description: Choose build environment
|
|
required: true
|
|
type: choice
|
|
options:
|
|
- QA
|
|
- Prod
|
|
runnerType:
|
|
description: Choose runner type
|
|
required: true
|
|
type: choice
|
|
options:
|
|
- default
|
|
- macos
|
|
releaseType:
|
|
description: Choose release type
|
|
required: true
|
|
type: choice
|
|
options:
|
|
- TEST_BUILD
|
|
- SOFT_RELEASE
|
|
- HARD_RELEASE
|
|
type:
|
|
description: Choose build type
|
|
required: true
|
|
type: choice
|
|
options:
|
|
- release
|
|
version_code:
|
|
description: Enter app version code (example, 292)
|
|
required: true
|
|
type: string
|
|
default: "292"
|
|
version_name:
|
|
description: Enter app version name (example, 3.2.1)
|
|
required: true
|
|
type: string
|
|
default: "3.2.1"
|
|
|
|
jobs:
|
|
trigger-generate-apk:
|
|
runs-on: ${{ github.event.inputs.runnerType }}
|
|
steps:
|
|
- name: Trigger generate-apk
|
|
uses: benc-uk/workflow-dispatch@v1
|
|
with:
|
|
workflow: newBuild.yml
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
inputs: |
|
|
environment: ${{ github.event.inputs.environment }}
|
|
runnerType: ${{ github.event.inputs.runnerType }}
|
|
flavor: fieldAgents
|
|
releaseType: ${{ github.event.inputs.releaseType }}
|
|
type: ${{ github.event.inputs.type }}
|
|
version_code: ${{ github.event.inputs.version_code }}
|
|
version_name: ${{ github.event.inputs.version_name }}
|
|
|
|
trigger-generate-apk-tele:
|
|
runs-on: ${{ github.event.inputs.runnerType }}
|
|
steps:
|
|
- name: Trigger generate-apk-tele
|
|
uses: benc-uk/workflow-dispatch@v1
|
|
with:
|
|
workflow: hardReleaseTele.yml
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
inputs: |
|
|
environment: ${{ github.event.inputs.environment }}
|
|
releaseType: ${{ github.event.inputs.releaseType }}
|
|
flavor: callingAgents
|
|
type: ${{ github.event.inputs.type }}
|
|
version_code: ${{ github.event.inputs.version_code }}
|
|
version_name: ${{ github.event.inputs.version_name }} |