Skip to content

Commit 090fa31

Browse files
Reusable workflow inputs example include boolean
1 parent a4a6613 commit 090fa31

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

data/reusables/actions/workflow-dispatch-inputs.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ on:
1515
- info
1616
- warning
1717
- debug {% endif %}
18+
print_tags:
19+
description: 'True to print to STDOUT'
20+
required: true {% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5511 %}
21+
type: boolean {% endif %}
1822
tags:
1923
description: 'Test scenario tags'
20-
required: false {% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5511 %}
21-
type: boolean
24+
required: true {% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5511 %}
25+
type: string
2226
environment:
2327
description: 'Environment to run tests against'
2428
type: environment
@@ -27,7 +31,7 @@ on:
2731
jobs:
2832
print-tag:
2933
runs-on: ubuntu-latest
30-
34+
if: {% raw %} ${{ inputs.print_tags == 'true' }} {% endraw %}
3135
steps:
3236
- name: Print the input tag to STDOUT
3337
run: echo {% raw %} The tag is ${{ github.event.inputs.tag }} {% endraw %}

0 commit comments

Comments
 (0)