diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 07c07f0..f2b81cc 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -55,8 +55,8 @@ jobs: cat index.html - name: e2e Test published ssh-deploy action - uses: easingthemes/ssh-deploy@main - env: + uses: easingthemes/ssh-deploy@v3.1.0 + with: # SSH_PRIVATE_KEY: $EXAMPLE_SSH_PRIVATE_KEY # REMOTE_HOST: $EXAMPLE_REMOTE_HOST1 REMOTE_USER: ${{ env.TEST_USER }} @@ -64,3 +64,6 @@ jobs: SOURCE: "test_project/" TARGET: "/var/www/html/" EXCLUDE: "/dist/, /node_modules/" + SCRIPT: | + whoami + ls -al diff --git a/action.yml b/action.yml index 15aa86e..0e01857 100644 --- a/action.yml +++ b/action.yml @@ -31,6 +31,10 @@ inputs: description: "An array of folder to exclude" required: false default: "" + SCRIPT: + description: "Script to run on host machine" + required: false + default: "ls" outputs: status: description: "Status" diff --git a/src/remoteCmd.js b/src/remoteCmd.js new file mode 100644 index 0000000..e69de29 diff --git a/src/rsyncCli.js b/src/rsyncCli.js index aa8190b..1157499 100644 --- a/src/rsyncCli.js +++ b/src/rsyncCli.js @@ -5,7 +5,7 @@ const validateRsync = (callback = () => {}) => { const rsyncCli = commandExists("rsync"); if (rsyncCli) { console.log('⚠️ [CLI] Rsync exists'); - const rsyncVersion = execSync("rsync --version", { stdio: 'inherit' }); + execSync("rsync --version", { stdio: 'inherit' }); return callback(); }