Convert ENV to ARGS

This commit is contained in:
Webber
2019-11-24 20:42:36 +01:00
committed by Webber Takken
parent bd43fe9017
commit fdaab9667d
3 changed files with 32 additions and 10 deletions

View File

@@ -3,6 +3,25 @@ description: 'Request activation using credentials or license file'
inputs:
unityLicense:
description: 'Unity License for activating Unity Personal'
required: false
default: 'none'
unitySerial:
description: 'Unity serial for activation Unity Professional'
required: false
default: 'none'
unityEmail:
description: 'Unity account email for activation Unity Professional'
required: false
default: 'none'
unityPassword:
description: 'Unity account password for activation Unity Professional'
required: false
default: 'none'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.unityLicense }}
- ${{ inputs.unitySerail }}
- ${{ inputs.unityEmail }}
- ${{ inputs.unityPassword }}

View File

@@ -2,7 +2,12 @@
set -e
if [[ ! -z "$UNITY_LICENSE" ]]; then
UNITY_LICENSE=$1
UNITY_SERIAL=$2
UNITY_EMAIL=$3
UNITY_PASSWORD=$4
if [[ -n "$UNITY_LICENSE" ]] && [[ "$UNITY_LICENSE" != "none" ]]; then
#
# PERSONAL LICENSE MODE
#
@@ -46,13 +51,12 @@ else
#
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
/opt/Unity/Editor/Unity \
-logFile /dev/stdout \
-batchmode \
-username "$UNITY_EMAIL" \
-password "$UNITY_PASSWORD" \
-serial "$UNITY_SERIAL" \
-nographics \
-verbose \
-logFile /dev/stdout \
-quit \
-projectPath "$(pwd)"
-serial "$UNITY_SERIAL" \
-username "$UNITY_EMAIL" \
-password "$UNITY_PASSWORD"
fi