Skip to content

Commit 8f71595

Browse files
committedJan 2, 2023
fix: Add manual inputs for e2e test
1 parent 1b29e52 commit 8f71595

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed
 

‎.github/workflows/e2e.yml

+18-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,21 @@ name: e2e Test
33
on:
44
push:
55
branches: [ 'main' ]
6+
workflow_dispatch:
7+
inputs:
8+
ARGS:
9+
description: 'ARGS'
10+
required: true
11+
default: '-rltgoDzvO'
12+
EXCLUDE:
13+
description: 'EXCLUDE'
14+
required: true
15+
default: '/dist/, /node_modules/'
16+
SSH_CMD_ARGS:
17+
description: 'SSH_CMD_ARGS'
18+
required: true
19+
default: '-o StrictHostKeyChecking=no'
20+
621

722
env:
823
TEST_HOST_DOCKER: ./test
@@ -61,10 +76,11 @@ jobs:
6176
# SSH_PRIVATE_KEY: $EXAMPLE_SSH_PRIVATE_KEY
6277
# REMOTE_HOST: $EXAMPLE_REMOTE_HOST
6378
REMOTE_USER: ${{ env.TEST_USER }}
64-
ARGS: "-rltgoDzvO"
79+
ARGS: ${{ github.event.inputs.ARGS }}
80+
SSH_CMD_ARGS: ${{ github.event.inputs.SSH_CMD_ARGS }}
6581
SOURCE: "test_project/"
6682
TARGET: "/var/www/html/"
67-
EXCLUDE: "/dist/, /node_modules/"
83+
EXCLUDE: ${{ github.event.inputs.EXCLUDE }}
6884
SCRIPT_BEFORE: |
6985
whoami
7086
ls -al

0 commit comments

Comments
 (0)
Please sign in to comment.