test logging

This commit is contained in:
2025-06-27 23:23:25 -07:00
parent 8d72404721
commit 91278c9a86
3 changed files with 8 additions and 10 deletions

View File

@@ -40,10 +40,6 @@ inputs:
unityBuilder:
description: "Whether or not to use the UnityBuilder instead of a Unity command."
required: false
removeContainer:
description: "Remove the mock container after building."
required: false
default: "true"
runs:
using: "composite"
steps:
@@ -91,8 +87,4 @@ runs:
password: ${{ inputs.password }}
command: ${{ steps.command.outputs.command }}
unityBuilder: ${{ inputs.unityBuilder }}
- name: "Remove temporary image."
if: ${{ inputs.removeContainer == 'true' }}
run: |
docker image rm ${{ inputs.imageTag }}
shell: bash

View File

@@ -17,8 +17,12 @@ fi
echo "::group::Running Unity Command"
#Run the command.
if [[ -n "$UNITY_BUILDER" ]]; then
echo "Using UnityBuilder to run the command:"
echo " UnityBuilder $COMMAND"
UnityBuilder $COMMAND
else
echo "Using unity-editor to run the command:"
echo " unity-editor $DEFAULT_ARGS $COMMAND"
unity-editor $DEFAULT_ARGS $COMMAND
fi
echo "::endgroup::"

View File

@@ -23,7 +23,9 @@ fi
#Activate Unity
if [[ "$SERIAL" == "personal" ]]; then
echo "Obtaining personal license for Unity..."
UnityBuilder activate -i /usr/bin/unity-editor -u $USERNAME -p $PASSWORD
else
echo "Activating Unity License with serial number."
unity-editor $DEFAULT_ARGS -serial $SERIAL -username $USERNAME -password $PASSWORD
fi