Compare commits

...

3 Commits

Author SHA1 Message Date
Jesse
164b6acc22 test multiline 2024-01-02 21:49:20 +00:00
Jesse
384d12c1a4 remove stderr 2024-01-02 21:20:17 +00:00
Jesse
a3c6d747c4 Include stdout and stderr to file 2024-01-02 21:00:45 +00:00
2 changed files with 11 additions and 1 deletions

View File

@ -67,6 +67,9 @@ inputs:
description: 'Enable debug mode.'
allenvs:
description: 'pass all environment variable to shell script.'
outputs:
stdout:
description: 'Standard output of the executed commands.'
runs:
using: 'docker'
image: 'Dockerfile'

View File

@ -1,7 +1,14 @@
#!/bin/sh
set -eu
set -o pipefail
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