Commit f3068dc 1 parent 49b1d19 commit f3068dc Copy full SHA for f3068dc
File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 91
91
function kit::wf::output {
92
92
local val
93
93
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"
95
99
kit::wf::group "🖨️ step output '$1' has been set" <<< "${2:-$val}"
96
100
}
97
101
@@ -162,7 +166,7 @@ runs:
162
166
[[ "$EXPORT" == 'true' ]] && kit::wf::env 'KUBECONFIG' <<< "$KUBECONFIG"
163
167
kit::wf::output 'context' <<< "$CONTEXT"
164
168
kit::wf::output 'kubeconfig' <<< "$KUBECONFIG"
165
-
169
+
166
170
if [[ "$VERSION" == 'true' ]]; then
167
171
kubectl version -o yaml | yq -Ce | kit::wf::group '🚢 kubectl version'
168
172
fi
You can’t perform that action at this time.
0 commit comments