Skip to content

Commit 8a0c87b

Browse files
Create main.yml
1 parent ead42d1 commit 8a0c87b

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
on:
2+
workflow_dispatch:
3+
inputs:
4+
logLevel:
5+
description: 'Log level'
6+
required: true
7+
default: 'warning'
8+
type: choice
9+
options:
10+
- info
11+
- warning
12+
- debug
13+
tags:
14+
description: 'Test scenario tags'
15+
required: false
16+
type: boolean
17+
environment:
18+
description: 'Environment to run tests against'
19+
type: environment
20+
required: true
21+
22+
jobs:
23+
log-the-inputs:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- run: |
27+
echo "Log level: $LEVEL"
28+
echo "Tags: $TAGS"
29+
echo "Environment: $ENVIRONMENT"
30+
env:
31+
LEVEL: ${{ inputs.logLevel }}
32+
TAGS: ${{ inputs.tags }}
33+
ENVIRONMENT: ${{ inputs.environment }}

0 commit comments

Comments
 (0)