Skip to content

Commit

Permalink
Fix multiline output error
Browse files Browse the repository at this point in the history
  • Loading branch information
skyducks authored Nov 1, 2022
1 parent 06b833e commit 977919c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ fi
if [ -z "$dest" ]; then
kubectl $*
else
output=$(kubectl $*)
echo "::set-output name=$dest::$output"
echo "::add-mask::$output"

# debug only
#echo $output
echo "$dest<<EOF" >> $GITHUB_ENV
kubectl $* >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV

echo "::add-mask::$dest"
fi

0 comments on commit 977919c

Please sign in to comment.