Skip to content

Commit 6c795fc

Browse files
authored
Enhance GitHub Actions with workflow_dispatch
Added workflow_dispatch event and input for Git ref.
1 parent a432db0 commit 6c795fc

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@ on:
55
branches:
66
- main
77

8+
workflow_dispatch:
9+
inputs:
10+
ref:
11+
description: 'Git ref, workflow_dispatch'
12+
required: false
13+
default: ''
14+
815
jobs:
916
build-and-selftest:
10-
if: github.head_ref != 'gitlab-main'
17+
if: github.event_name == 'workflow_dispatch' || github.head_ref != 'gitlab-main'
1118
runs-on: ubuntu-latest
1219

20+
environment: magento-playwright
21+
1322
env:
1423
PLAYWRIGHT_BASE_URL: https://hyva-demo.elgentos.io/
1524
PLAYWRIGHT_PRODUCTION_URL: https://hyva-demo.elgentos.io/

0 commit comments

Comments
 (0)