Fix multiline output error

This commit is contained in:
YD Suh 2022-11-01 19:19:32 +09:00 committed by GitHub
parent 06b833eee9
commit 977919c36f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,10 +40,9 @@ fi
if [ -z "$dest" ]; then if [ -z "$dest" ]; then
kubectl $* kubectl $*
else else
output=$(kubectl $*) echo "$dest<<EOF" >> $GITHUB_ENV
echo "::set-output name=$dest::$output" kubectl $* >> $GITHUB_ENV
echo "::add-mask::$output" echo "EOF" >> $GITHUB_ENV
# debug only echo "::add-mask::$dest"
#echo $output
fi fi