12
12
EXCLUDE :
13
13
description : ' EXCLUDE'
14
14
required : true
15
- default : ' /dist /, /node_modules/'
15
+ default : ' skip_dir /, /node_modules/'
16
16
SSH_CMD_ARGS :
17
17
description : ' SSH_CMD_ARGS'
18
18
required : true
@@ -63,15 +63,18 @@ jobs:
63
63
64
64
- name : Create project file
65
65
run : |
66
- mkdir test_project
67
- cd test_project
66
+ mkdir test_project && cd "$_"
68
67
touch index.html
68
+ date +"%Y-%m-%d %H:%M:%S,%3N" >> index.html
69
69
truncate -s 50MB image.svg
70
- truncate -s 5MB text .txt
70
+ truncate -s 5MB info .txt
71
71
truncate -s 500MB big_file.txt
72
- date +"%Y-%m-%d %H:%M:%S,%3N" >> index.html
72
+ mkdir skip_dir && cd "$_"
73
+ truncate -s 5MB text_in_skip_dir.txt
74
+ cd ../
73
75
cat index.html
74
- ls -l
76
+ echo "test_project: \n" && ls -l
77
+ echo "skip_dir: \n" && ls -l skip_dir
75
78
76
79
- name : e2e Test published ssh-deploy action
77
80
uses : easingthemes/ssh-deploy@main
@@ -84,11 +87,10 @@ jobs:
84
87
SSH_CMD_ARGS : ${{ github.event.inputs.SSH_CMD_ARGS || '-o StrictHostKeyChecking=no, -o UserKnownHostsFile=/dev/null' }}
85
88
SOURCE : " test_project/"
86
89
TARGET : " /var/www/html/"
87
- EXCLUDE : ${{ github.event.inputs.EXCLUDE || '/dist /, /node_modules/' }}
90
+ EXCLUDE : ${{ github.event.inputs.EXCLUDE || 'skip_dir /, /node_modules/' }}
88
91
SCRIPT_BEFORE : |
89
92
whoami
90
- ls -al
93
+ ls -al /var/www/html/
91
94
SCRIPT_AFTER : |
92
- whoami
93
- ls -al
95
+ ls -al /var/www/html/
94
96
echo $RSYNC_STDOUT
0 commit comments