Skip to content

Commit 5df8a39

Browse files
committed
Fix workflow
1 parent 9bf73d8 commit 5df8a39

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/Update.Unturned.Redist.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)