1
0
mirror of synced 2025-12-30 03:01:36 -05:00

Reusable workflow inputs example include boolean

This commit is contained in:
Thomas Evans
2022-03-03 14:33:42 -05:00
committed by GitHub
parent a4a6613935
commit 090fa31edf

View File

@@ -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 %}