From 7ce207c7a5afb8166c73867c42db43e434e2ca0f Mon Sep 17 00:00:00 2001 From: Scion Date: Sat, 5 Aug 2023 22:55:15 -0700 Subject: [PATCH] test --- unity-command/action.yaml | 2 +- unity-command/entrypoint.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/unity-command/action.yaml b/unity-command/action.yaml index 673e46a..22f412b 100644 --- a/unity-command/action.yaml +++ b/unity-command/action.yaml @@ -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." diff --git a/unity-command/entrypoint.sh b/unity-command/entrypoint.sh index d29c2c4..f44a250 100644 --- a/unity-command/entrypoint.sh +++ b/unity-command/entrypoint.sh @@ -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::" \ No newline at end of file