mirror of
https://github.com/game-ci/unity-actions.git
synced 2026-02-04 17:09:05 +08:00
Revert to env variables, since args are passed in command line
This commit is contained in:
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -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 }}
|
||||
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user