Skip to content

Commit

Permalink
fix: Add visible Rsync CMD for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
easingthemes committed Jan 2, 2023
1 parent 4f233a7 commit 91b6d28
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
EXCLUDE:
description: 'EXCLUDE'
required: true
default: '/dist/, /node_modules/'
default: 'skip_dir/, /node_modules/'
SSH_CMD_ARGS:
description: 'SSH_CMD_ARGS'
required: true
Expand Down Expand Up @@ -63,15 +63,18 @@ jobs:

- name: Create project file
run: |
mkdir test_project
cd test_project
mkdir test_project && cd "$_"
touch index.html
date +"%Y-%m-%d %H:%M:%S,%3N" >> index.html
truncate -s 50MB image.svg
truncate -s 5MB text.txt
truncate -s 5MB info.txt
truncate -s 500MB big_file.txt
date +"%Y-%m-%d %H:%M:%S,%3N" >> index.html
mkdir skip_dir && cd "$_"
truncate -s 5MB text_in_skip_dir.txt
cd ../
cat index.html
ls -l
echo "test_project: \n" && ls -l
echo "skip_dir: \n" && ls -l skip_dir
- name: e2e Test published ssh-deploy action
uses: easingthemes/ssh-deploy@main
Expand All @@ -84,11 +87,10 @@ jobs:
SSH_CMD_ARGS: ${{ github.event.inputs.SSH_CMD_ARGS || '-o StrictHostKeyChecking=no, -o UserKnownHostsFile=/dev/null' }}
SOURCE: "test_project/"
TARGET: "/var/www/html/"
EXCLUDE: ${{ github.event.inputs.EXCLUDE || '/dist/, /node_modules/' }}
EXCLUDE: ${{ github.event.inputs.EXCLUDE || 'skip_dir/, /node_modules/' }}
SCRIPT_BEFORE: |
whoami
ls -al
ls -al /var/www/html/
SCRIPT_AFTER: |
whoami
ls -al
ls -al /var/www/html/
echo $RSYNC_STDOUT
Loading

0 comments on commit 91b6d28

Please sign in to comment.