This commit is contained in:
2023-08-05 23:03:56 -07:00
parent 7ce207c7a5
commit 0a4385081b
4 changed files with 12 additions and 12 deletions

View File

@@ -24,10 +24,10 @@ inputs:
command:
description: "Unity command to run."
required: false
useGraphics:
noGraphics:
description: "Whether or not to use the graphics device when running Unity."
required: false
default: "false"
default: "true"
unityBuilder:
description: "Whether or not to use the UnityBuilder instead of a Unity command."
required: false
@@ -62,7 +62,7 @@ runs:
id: command
run: |
COMMAND="${{ inputs.command }}"
if [[ "{{ inputs.useGraphics }}" != "true" ]]; then
if [[ "{{ inputs.noGraphics }}" == "true" ]]; then
COMMAND="-nographics $COMMAND"
fi
echo "command=$COMMAND"