Compare commits
2 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
6582a0be19 | |
|
|
aa298e0d20 |
|
|
@ -24,14 +24,16 @@ jobs:
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.DC_HOST }}
|
host: ${{ secrets.DC_HOST }}
|
||||||
user: ${{ secrets.DC_USER }}
|
user: ${{ secrets.DC_USER }}
|
||||||
pass: ${{ secrets.DC_PASS }}
|
key: ${{ secrets.DC_PASS }}
|
||||||
port: ${{ secrets.DC_PORT }}
|
port: ${{ secrets.DC_PORT }}
|
||||||
connect_timeout: 10s
|
connect_timeout: 10s
|
||||||
first_ssh: |-
|
first_ssh: |-
|
||||||
rm -rf /home/github/test
|
rm -rf /home/github/test
|
||||||
ls -la
|
ls -la
|
||||||
echo $WELCOME
|
echo $WELCOME ||
|
||||||
mkdir -p /home/github/test/test1 &&
|
ls debug
|
||||||
|
mkdir -p /home/github/test/test1 &&
|
||||||
|
ls debug
|
||||||
mkdir -p /home/github/test/test2 &&
|
mkdir -p /home/github/test/test2 &&
|
||||||
scp: |-
|
scp: |-
|
||||||
'./test/*' => /home/github/test/
|
'./test/*' => /home/github/test/
|
||||||
|
|
|
||||||
4
app.py
4
app.py
|
|
@ -86,8 +86,10 @@ def ssh_process(ssh, input_ssh):
|
||||||
c = path.expandvars(commands[i])
|
c = path.expandvars(commands[i])
|
||||||
if c == "":
|
if c == "":
|
||||||
continue
|
continue
|
||||||
if c.endswith('&&') or c.endswith('||') or c.endswith(';'):
|
if c.endswith('&&') or c.endswith('||'):
|
||||||
c = c[0:-2] if i == (l-1) else c
|
c = c[0:-2] if i == (l-1) else c
|
||||||
|
elif c.endswith(';'):
|
||||||
|
c = c[0:-1] if i == (l-1) else c
|
||||||
else:
|
else:
|
||||||
c = f"{c} &&" if i < (l-1) else c
|
c = f"{c} &&" if i < (l-1) else c
|
||||||
command_str = f"{command_str} {c}"
|
command_str = f"{command_str} {c}"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue