Update deployment workflow for inputs #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Static Deployment | |
on: | |
push: | |
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 | |
jobs: | |
deploy: | |
uses: ./.github/workflows/build_and_deploy.yml | |
with: | |
environment: ${{ github.event.inputs.environment }} |