Skip to content

Exploring Workflow Dispatch Trigger #6

Exploring Workflow Dispatch Trigger

Exploring Workflow Dispatch Trigger #6

Workflow file for this run

name: Exploring Workflow Dispatch Trigger
on:
workflow_dispatch:
inputs:
run-job:
description: "Run Specific Job"
type: boolean
required: false
custom_message:
description: "Enter a custom message"
type: string
required: true
jobs:
job1:
runs-on: ubuntu-latest
steps:
- run: echo "Exploring Workflow Dispatch Trigger"
job2:
runs-on: ubuntu-latest
steps:
- name: Printing Custom Message
run: echo ${{ inputs.custom_message }}
- name: Printing run-job boolean value
if: ${{ inputs.run-job }}
run: echo ${{ inputs.run-job }}