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
kubectl $*
else
output=$(kubectl $*)
echo "::set-output name=$dest::$output"
echo "::add-mask::$output"
echo "$dest<<EOF" >> $GITHUB_ENV
kubectl $* >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
# debug only
#echo $output
echo "::add-mask::$dest"
fi