diff --git a/.github/workflows/workflow_dispatch_multiple_input_example.yml b/.github/workflows/workflow_dispatch_multiple_input_example.yml new file mode 100644 index 0000000..3f52b98 --- /dev/null +++ b/.github/workflows/workflow_dispatch_multiple_input_example.yml @@ -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}}"