Skip to content

Update deployment workflow for inputs #22

Update deployment workflow for inputs

Update deployment workflow for inputs #22

Workflow file for this run

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 }}