Reusable workflow inputs example include boolean
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user