Files
ZFScoresCheck/.github/workflows/demo.yml
T
2024-07-17 18:55:42 +08:00

41 lines
1.1 KiB
YAML

name: Workflow Dispatch Example
on:
workflow_dispatch:
inputs:
string_input:
description: 'A string input'
required: true
default: 'Hello'
type: string
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:
build:
runs-on: ubuntu-latest
steps:
- name: Print Inputs
run: |
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) }}"