Skip to content

Commit

Permalink
Update deployment workflow for inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
sshrihar committed Mar 20, 2024
1 parent e85fbbd commit 282efca
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@ on:
branches:
- deployment-through-reusable-workflow
workflow_dispatch:

inputs:
environment:
required: false # Optional input for manual trigger
default: dev # Default value used during pushes
type: choice # Type of input for manual trigger
description: "Select the environment to deploy to (optional for pushes)" # Descriptive text
choices: ["dev", "staging", "prod"] # Choices available during manual trigger
inputs:
environment:
required: false # Optional input for manual trigger
default: dev # Default value used during pushes
type: choice # Type of input for manual trigger
description: "Select the environment to deploy to (optional for pushes)" # Descriptive text
choices: ["dev", "staging", "prod"] # Choices available during manual trigger

jobs:
deploy:
uses: ./.github/workflows/build_and_deploy.yml
with:
environment: ${inputs.environment}
environment: ${{ github.event.inputs.environment }}

0 comments on commit 282efca

Please sign in to comment.