File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1111 default : ' client'
1212 type : choice
1313 options :
14+ - all
1415 - client
1516 - server
1617 - server-preview
3839 id : set_variants
3940 run : |
4041 if [ "$GITHUB_EVENT_NAME" = "workflow_dispatch" ]; then
41- echo "variants=[\"${INPUT_VARIANT}\"]" >> $GITHUB_OUTPUT
42+ if [ "$INPUT_VARIANT" = "all" ]; then
43+ all_variants=("client" "server" "server-preview" "client-preview" "server-preview-old" "client-preview-old")
44+ variants_json=$(printf '%s\n' "${all_variants[@]}" | jq -R . | jq -s -c .)
45+ echo "variants=$variants_json" >> $GITHUB_OUTPUT
46+ else
47+ echo "variants=[\"${INPUT_VARIANT}\"]" >> $GITHUB_OUTPUT
48+ fi
4249 else
4350 all_variants=("client" "server" "server-preview" "client-preview" "server-preview-old" "client-preview-old")
4451 variants_json=$(printf '%s\n' "${all_variants[@]}" | jq -R . | jq -s -c .)
You can’t perform that action at this time.
0 commit comments