Revert to env variables, since args are passed in command line

This commit is contained in:
Webber
2019-11-24 20:49:33 +01:00
committed by Webber Takken
parent fdaab9667d
commit 53d5f0e900
3 changed files with 3 additions and 30 deletions

View File

@@ -19,6 +19,6 @@ jobs:
# Configure generic activation (local to the actions container)
- name: Request activation
uses: ./request-activation
with:
unityLicense: ${{ secrets.UNITY_LICENSE }}
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}

View File

@@ -1,27 +1,5 @@
name: 'Request activation'
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,12 +2,7 @@
set -e
UNITY_LICENSE=$1
UNITY_SERIAL=$2
UNITY_EMAIL=$3
UNITY_PASSWORD=$4
if [[ -n "$UNITY_LICENSE" ]] && [[ "$UNITY_LICENSE" != "none" ]]; then
if [[ -n "$UNITY_LICENSE" ]]; then
#
# PERSONAL LICENSE MODE
#