mirror of
https://github.com/easingthemes/ssh-deploy
synced 2025-04-22 00:02:18 +00:00
dix promise
This commit is contained in:
parent
a285ca6ac0
commit
7a4513a7f6
2
.github/workflows/e2e.yml
vendored
2
.github/workflows/e2e.yml
vendored
@ -56,7 +56,7 @@ jobs:
|
|||||||
|
|
||||||
- name: e2e Test published ssh-deploy action
|
- name: e2e Test published ssh-deploy action
|
||||||
uses: easingthemes/ssh-deploy@feature/ssh-cmd
|
uses: easingthemes/ssh-deploy@feature/ssh-cmd
|
||||||
with:
|
env:
|
||||||
# SSH_PRIVATE_KEY: $EXAMPLE_SSH_PRIVATE_KEY
|
# SSH_PRIVATE_KEY: $EXAMPLE_SSH_PRIVATE_KEY
|
||||||
# REMOTE_HOST: $EXAMPLE_REMOTE_HOST1
|
# REMOTE_HOST: $EXAMPLE_REMOTE_HOST1
|
||||||
REMOTE_USER: ${{ env.TEST_USER }}
|
REMOTE_USER: ${{ env.TEST_USER }}
|
||||||
|
@ -3,7 +3,7 @@ const which = require('which');
|
|||||||
const nodeRsync = require('rsyncwrapper');
|
const nodeRsync = require('rsyncwrapper');
|
||||||
|
|
||||||
// eslint-disable-next-line no-async-promise-executor
|
// eslint-disable-next-line no-async-promise-executor
|
||||||
const validateRsync = () => new Promise(async (resolve, reject) => {
|
const validateRsync = async () => new Promise(async (resolve, reject) => {
|
||||||
const rsyncCli = await which('rsync', { nothrow: true });
|
const rsyncCli = await which('rsync', { nothrow: true });
|
||||||
execSync('rsync --version', { stdio: 'inherit' });
|
execSync('rsync --version', { stdio: 'inherit' });
|
||||||
if (rsyncCli) {
|
if (rsyncCli) {
|
||||||
|
Loading…
Reference in New Issue
Block a user