Files
languageservices/workflow-parser/testdata/reader/on-workflow_dispatch-inputs.yml
Christopher Schleiden 2a3d63551f Rename folders
2023-02-22 15:52:40 -08:00

63 lines
1.1 KiB
YAML

include-source: false # Drop file/line/col from output
---
on:
workflow_dispatch:
inputs:
input1:
default: value
type: string
input2:
type: boolean
input3:
description: Log level
required: true
default: warning
type: choice
options:
- info
- warning
- debug
# Defaults to string
input4:
input5-Env:
description: 'Test environment'
type: environment
required: true
jobs:
my-job:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"input-types": {
"input1": "string",
"input2": "boolean",
"input3": "choice",
"input4": "string",
"input5-Env": "environment"
},
"jobs": [
{
"type": "job",
"id": "my-job",
"name": "my-job",
"if": {
"type": 3,
"expr": "success()"
},
"runs-on": "ubuntu-latest",
"steps": [
{
"id": "__run",
"if": {
"type": 3,
"expr": "success()"
},
"run": "echo hi"
}
]
}
]
}