mirror of
https://github.com/game-ci/unity-actions.git
synced 2026-01-29 04:39:07 +08:00
Convert ENV to ARGS
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user