1
0
mirror of synced 2025-12-30 03:01:36 -05:00
Files
docs/data/reusables/actions/workflow-dispatch-inputs-example.md

35 lines
803 B
Markdown

```yaml
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
print_tags:
description: 'True to print to STDOUT'
required: true
type: boolean
tags:
description: 'Test scenario tags'
required: true
type: string
environment:
description: 'Environment to run tests against'
type: environment
required: true
jobs:
print-tag:
runs-on: ubuntu-latest
if:{% raw %} ${{ inputs.print_tags }} {% endraw %}
steps:
- name: Print the input tag to STDOUT
run: echo {% raw %} The tags are ${{ inputs.tags }} {% endraw %}
```