add
This commit is contained in:
@@ -1,40 +1,17 @@
|
|||||||
name: Workflow Dispatch Example
|
name: Example Workflow
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
string_input:
|
integer_input:
|
||||||
description: 'A string input'
|
description: 'Enter an integer value'
|
||||||
required: true
|
required: true
|
||||||
default: 'Hello'
|
default: 10
|
||||||
type: string
|
type: integer
|
||||||
boolean_input:
|
|
||||||
description: 'A boolean input'
|
|
||||||
required: false
|
|
||||||
default: true
|
|
||||||
type: boolean
|
|
||||||
number_input:
|
|
||||||
description: 'A number input'
|
|
||||||
required: false
|
|
||||||
default: 42
|
|
||||||
type: number
|
|
||||||
object_input:
|
|
||||||
description: 'An object input'
|
|
||||||
required: false
|
|
||||||
type: object
|
|
||||||
array_input:
|
|
||||||
description: 'An array input'
|
|
||||||
required: false
|
|
||||||
type: array
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
example-job:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Print Inputs
|
- name: Print integer input
|
||||||
run: |
|
run: echo "Integer input is ${{ github.event.inputs.integer_input }}"
|
||||||
echo "String Input: ${{ github.event.inputs.string_input }}"
|
|
||||||
echo "Boolean Input: ${{ github.event.inputs.boolean_input }}"
|
|
||||||
echo "Number Input: ${{ github.event.inputs.number_input }}"
|
|
||||||
echo "Object Input: ${{ toJson(github.event.inputs.object_input) }}"
|
|
||||||
echo "Array Input: ${{ toJson(github.event.inputs.array_input) }}"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user