mirror of
https://githubfast.com/appleboy/ssh-action
synced 2024-10-31 15:46:30 +00:00
Merge 164b6acc22
into 2451745138
This commit is contained in:
commit
9dad5242f5
@ -67,6 +67,9 @@ inputs:
|
|||||||
description: 'Enable debug mode.'
|
description: 'Enable debug mode.'
|
||||||
allenvs:
|
allenvs:
|
||||||
description: 'pass all environment variable to shell script.'
|
description: 'pass all environment variable to shell script.'
|
||||||
|
outputs:
|
||||||
|
stdout:
|
||||||
|
description: 'Standard output of the executed commands.'
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'Dockerfile'
|
image: 'Dockerfile'
|
||||||
|
@ -1,7 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
export GITHUB="true"
|
export GITHUB="true"
|
||||||
|
|
||||||
sh -c "/bin/drone-ssh $*"
|
{
|
||||||
|
sh -c "/bin/drone-ssh $*"
|
||||||
|
} | tee /tmp/outFile
|
||||||
|
|
||||||
|
echo "stdout<<EOF" >> $GITHUB_OUTPUT
|
||||||
|
cat /tmp/outFile >> $GITHUB_OUTPUT
|
||||||
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
Loading…
Reference in New Issue
Block a user