diff --git a/unity-command/action.yaml b/unity-command/action.yaml index 8c6ffda..03c3089 100644 --- a/unity-command/action.yaml +++ b/unity-command/action.yaml @@ -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 + diff --git a/unity-command/entrypoint.sh b/unity-command/entrypoint.sh index 89a722e..f98d75b 100644 --- a/unity-command/entrypoint.sh +++ b/unity-command/entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/bash -SERIAL=$1; EMAIL=$2; PASSWORD=$3; COMMAND=$4; UNITY_BUILDER=$5 +SERIAL=$1; EMAIL=$2; PASSWORD=$3; COMMAND=$4; UNITY_BUILDER=$5 DEFAULT_ARGS="-quit -logFile -" rm -rf $HOME/.config/unity3d @@ -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::" diff --git a/unity-command/scripts/activate_license.sh b/unity-command/scripts/activate_license.sh index 81100fe..03b215a 100644 --- a/unity-command/scripts/activate_license.sh +++ b/unity-command/scripts/activate_license.sh @@ -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 \ No newline at end of file