Skip to content

Commit

Permalink
git: added workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
clair-beep committed Apr 22, 2024
1 parent 6bed3f6 commit 074ba77
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/workflow_dispatch_multiple_input_example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Workflow Dispatch Multiple Input Example

on:
workflow_dispatch:
inputs:
environment:
description: 'Environment to deploy'
type: environment
required: true
notify:
description: 'Notify of deployment?'
required: true
type: boolean
default: false

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- run: echo "Deploy to ${{ github.event.inputs.environment}} environment "

notify:
runs-on: ubuntu-latest
if: ${{ github.event.inputs.notify}}
steps:
- run: echo "Deployed to ${{ github.event.inputs.environment}}"

0 comments on commit 074ba77

Please sign in to comment.