This commit is contained in:
2023-08-05 22:55:15 -07:00
parent c639b13799
commit 7ce207c7a5
2 changed files with 5 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ runs:
run: |
COMMAND="${{ inputs.command }}"
if [[ "{{ inputs.useGraphics }}" != "true" ]]; then
COMMAND="$COMMAND -nographics"
COMMAND="-nographics $COMMAND"
fi
echo "command=$COMMAND"
- name: "Run Unity command."

View File

@@ -9,12 +9,16 @@ rm -rf /home/unity/.config/unity3d
bash /scripts/add_ssh_keys.sh
if [[ "$SERIAL" != "activated" ]]; then
echo "::group::Activating Unity License"
bash /scripts/activate_license.sh "$SERIAL" "$EMAIL" "$PASSWORD"
echo "::endgroup::"
fi
echo "::group::Running Unity Command"
#Run the command.
if [[ -n "$UNITY_BUILDER" ]]; then
UnityBuilder $COMMAND
else
unity-editor $DEFAULT_ARGS $COMMAND
fi
echo "::endgroup::"