diff --git a/.github/workflows/hardReleaseParent.yml b/.github/workflows/hardReleaseParent.yml new file mode 100644 index 00000000..3d8ea899 --- /dev/null +++ b/.github/workflows/hardReleaseParent.yml @@ -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 }} \ No newline at end of file