name: unity
description: "Register Unity with the provided license and run a Unity command."
inputs:
  serial:
    description: "Unity license serial number. Or 'personal' for a personal license. Or 'activated' to skip activation."
    required: true
    default: personal
  email:
    description: "Unity email."
    required: true
  password:
    description: "Unity password."
    required: true
  command:
    description: "Unity command to run."
    required: false
  unityBuilder:
    description: "Whether or not to use the UnityBuilder instead of a Unity command."
    required: false
runs:
  using: docker
  #This is a base "mock" image which is replaced by the correct image in the "unity-command" action at runtime.
  #image: docker://unityci/base:latest
  image: docker://${{ env.UNITY_CONTAINER }}
  args:
  - ${{ inputs.serial }}
  - ${{ inputs.email }}
  - ${{ inputs.password }}
  - ${{ inputs.command }}
  - ${{ inputs.unityBuilder }}
