Files
languageservices/actions-workflow-parser/testdata/reader/on-workflow_dispatch-inputs.yml
T
2023-01-06 15:54:31 -08:00

61 lines
1.0 KiB
YAML

include-source: false # Drop file/line/col from output
skip:
- Go
- Typescript
---
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:
jobs:
my-job:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"input-types": {
"input1": "string",
"input2": "boolean",
"input3": "choice",
"input4": "string"
},
"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"
}
]
}
]
}