Skip to content

Commit f3068dc

Browse files
committed
GITHUB_OUTPUT
1 parent 49b1d19 commit f3068dc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

action.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ runs:
9191
function kit::wf::output {
9292
local val
9393
val="$(< /dev/stdin)"
94-
echo "::set-output name=$1::$val"
94+
{ # https://www.gnu.org/software/bash/manual/bash.html#Command-Grouping
95+
echo "$1<<__GITHUB_OUTPUT__"
96+
echo "$val"
97+
echo '__GITHUB_OUTPUT__'
98+
} >> "$GITHUB_OUTPUT"
9599
kit::wf::group "🖨️ step output '$1' has been set" <<< "${2:-$val}"
96100
}
97101
@@ -162,7 +166,7 @@ runs:
162166
[[ "$EXPORT" == 'true' ]] && kit::wf::env 'KUBECONFIG' <<< "$KUBECONFIG"
163167
kit::wf::output 'context' <<< "$CONTEXT"
164168
kit::wf::output 'kubeconfig' <<< "$KUBECONFIG"
165-
169+
166170
if [[ "$VERSION" == 'true' ]]; then
167171
kubectl version -o yaml | yq -Ce | kit::wf::group '🚢 kubectl version'
168172
fi

0 commit comments

Comments
 (0)