NTP-28802 | merge

This commit is contained in:
Aman Chaturvedi
2025-01-21 17:15:20 +05:30
parent b6a7a13caf
commit f164e77f2b

77
.github/workflows/hardReleaseParent.yml vendored Normal file
View File

@@ -0,0 +1,77 @@
name: Trigger Child Workflows
on:
workflow_dispatch:
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 }}