File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -36,16 +36,16 @@ jobs:
3636 - name : Set variants
3737 id : set_variants
3838 run : |
39- if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
40- # For dispatch, only run the selected variant
41- variant="${{ github.event.inputs.variant }}"
42- echo "variants=[\"$variant\"]" >> $GITHUB_OUTPUT
39+ if [ "$GITHUB_EVENT_NAME" = "workflow_dispatch" ]; then
40+ echo "variants=[\"${INPUT_VARIANT}\"]" >> $GITHUB_OUTPUT
4341 else
44- # For scheduled runs, use all variants in desired order
4542 all_variants=("client" "server" "server-preview" "client-preview" "server-preview-old" "client-preview-old")
4643 variants_json=$(printf '%s\n' "${all_variants[@]}" | jq -R . | jq -s -c .)
4744 echo "variants=$variants_json" >> $GITHUB_OUTPUT
4845 fi
46+ env :
47+ INPUT_VARIANT : ${{ github.event.inputs.variant }}
48+ GITHUB_EVENT_NAME : ${{ github.event_name }}
4949
5050 update_redist :
5151 name : " Update Redist"
You can’t perform that action at this time.
0 commit comments