-
Notifications
You must be signed in to change notification settings - Fork 31
45 lines (44 loc) · 1.14 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
# required: true
required: false
default: 'warning'
type: choice
options:
- info
- warning
- debug
print_tags:
description: 'True to print to STDOUT'
# required: true
type: boolean
optional_boolean:
description: 'Not required boolean'
required: false
type: boolean
tags:
description: 'Test scenario tags'
required: true
type: string
environment:
required: true
type: choice
options:
- debug
- staging
- production
number:
description: 'Some number'
required: false
type: number
jobs:
print-tag:
runs-on: ubuntu-latest
if: ${{ inputs.print_tags }}
steps:
- run: echo "number is ${{ inputs.number }}"
- name: Print the input tag to STDOUT
run: echo "The tags are ${{ inputs.tags }}; env=${{ inputs.environment }}; logLevel=${{ inputs.logLevel }}; optional_boolean=${{ inputs.optional_boolean }}"