Skip to content

Commit 2769377

Browse files
OBPIH-6453 Handle multiple environments (#25)
* OBPIH-6453 Handle multiple environments * Fix indentation * Change environment input type * Use only environment selected in inputs --------- Co-authored-by: Artur Walkowiak <awalkowiak@soldevelo.com>
1 parent cce7648 commit 2769377

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/playwright.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ on:
77
branches:
88
- main # Trigger on pushes to the main branch
99
workflow_dispatch: # Allow manual triggering of the workflow
10+
inputs:
11+
environment:
12+
description: 'Select environment'
13+
required: true
14+
type: choice
15+
default: 'obdev3'
16+
options:
17+
- obdev3
18+
- stg
1019
pull_request:
1120
branches:
1221
- main # Trigger when a pull request targets the main branch
@@ -19,6 +28,7 @@ jobs:
1928
id-token: write
2029
contents: read
2130
pages: write
31+
environment: ${{ inputs.environment }} # Assign environment dynamically
2232
steps:
2333
- name: Checkout code
2434
uses: actions/checkout@v4

0 commit comments

Comments
 (0)