Working on Github actions for the first time. In my .yml file I have the following
on:
workflow_dispatch:
branches:
- main
inputs:
environment:
type: choice
description: 'Select environment to deploy in'
required: true
options:
- dev
- non-prod
- prod
- staging
based on the option I need to do the following
for staging
- name: build
run: CI=false yarn build-staging
for non-prod
- name: build
run: CI=false yarn build
Could you please provide me with some pointers on how this can be achieved?