I have github action workflow that takes multiple user inputs while running using workflow_dispatch
event, the current workflow working fine. Now I am planning to create the service_name
input only if the element_type==bottom
, i.e dependant input actually based on the input of the previous input
create_update.yml,
name: Create or Update Secret JSON
on:
workflow_dispatch:
inputs:
environment:
description: 'Environment to create element (dev|stage|uat)?'
required: true
element_type:
type: choice
required: true
default: 'top'
description: Type of the element?
options:
- top
- bottom
service_name:
type: choice
required: true
default: 'serviceA'
description: Select service name where element should be created?
options:
- serviceA
- serviceB
jobs:
# my other code goes here
Just wanted to know is there any way to do it in github action yml workflow at all or I am overthinking here?