Skip to content

Commit

Permalink
OBPIH-6453 Handle multiple environments (#25)
Browse files Browse the repository at this point in the history
* OBPIH-6453 Handle multiple environments

* Fix indentation

* Change environment input type

* Use only environment selected in inputs

---------

Co-authored-by: Artur Walkowiak <[email protected]>
  • Loading branch information
drodzewicz and awalkowiak authored Dec 5, 2024
1 parent cce7648 commit 2769377
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ on:
branches:
- main # Trigger on pushes to the main branch
workflow_dispatch: # Allow manual triggering of the workflow
inputs:
environment:
description: 'Select environment'
required: true
type: choice
default: 'obdev3'
options:
- obdev3
- stg
pull_request:
branches:
- main # Trigger when a pull request targets the main branch
Expand All @@ -19,6 +28,7 @@ jobs:
id-token: write
contents: read
pages: write
environment: ${{ inputs.environment }} # Assign environment dynamically
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down

0 comments on commit 2769377

Please sign in to comment.