Skip to content

Commit 3b00a07

Browse files
committed
feat: add clean slate for FTP workflow
1 parent 4ffa11a commit 3b00a07

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ name: CI
44
on:
55
# Allows you to run this workflow manually from the Actions tab
66
workflow_dispatch:
7+
inputs:
8+
clean_slate:
9+
description: 'Clean remote directory before upload'
10+
required: false
11+
default: false
12+
type: boolean
713

814
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
915
jobs:
@@ -44,4 +50,5 @@ jobs:
4450
password: ${{ secrets.FTP_DEMO_PASSWORD }}
4551
port: 21
4652
local-dir: /home/ubuntu/mrz-scanner-javascript/deploy/
47-
server-dir: /Demo.dynamsoft.com/mrz-scanner/
53+
server-dir: /Demo.dynamsoft.com/mrz-scanner/
54+
dangerous-clean-slate: ${{ github.event.inputs.clean_slate }}

0 commit comments

Comments
 (0)