From 090fa31edff9c99763f15a32db0aacb6822dabb5 Mon Sep 17 00:00:00 2001 From: Thomas Evans <76004952+tevans-submittable@users.noreply.github.com> Date: Thu, 3 Mar 2022 14:33:42 -0500 Subject: [PATCH] Reusable workflow inputs example include boolean --- data/reusables/actions/workflow-dispatch-inputs.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/data/reusables/actions/workflow-dispatch-inputs.md b/data/reusables/actions/workflow-dispatch-inputs.md index f7de2293a5..632d91a654 100644 --- a/data/reusables/actions/workflow-dispatch-inputs.md +++ b/data/reusables/actions/workflow-dispatch-inputs.md @@ -15,10 +15,14 @@ on: - info - warning - debug {% endif %} + print_tags: + description: 'True to print to STDOUT' + required: true {% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5511 %} + type: boolean {% endif %} tags: description: 'Test scenario tags' - required: false {% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5511 %} - type: boolean + required: true {% ifversion fpt or ghec or ghes > 3.3 or ghae-issue-5511 %} + type: string environment: description: 'Environment to run tests against' type: environment @@ -27,7 +31,7 @@ on: jobs: print-tag: runs-on: ubuntu-latest - + if: {% raw %} ${{ inputs.print_tags == 'true' }} {% endraw %} steps: - name: Print the input tag to STDOUT run: echo {% raw %} The tag is ${{ github.event.inputs.tag }} {% endraw %}