diff --git a/action/steps/activate.sh b/action/steps/activate.sh index 89bae1c9..471389c3 100644 --- a/action/steps/activate.sh +++ b/action/steps/activate.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -if [[ -n "$UNITY_LICENSE" ]]; then +if [[ -n "$UNITY_LICENSE" || -n "$UNITY_LICENSE_PATH" ]]; then # # PERSONAL LICENSE MODE # @@ -15,8 +15,13 @@ if [[ -n "$UNITY_LICENSE" ]]; then # Set the license file path FILE_PATH=UnityLicenseFile.ulf - # Copy license file from Github variables - echo "$UNITY_LICENSE" | tr -d '\r' > $FILE_PATH + if [[ -n "$UNITY_LICENSE" || -n "$UNITY_LICENSE_PATH" ]]; then + # Copy license file from Github variables + echo "$UNITY_LICENSE" | tr -d '\r' > $FILE_PATH + else + # Copy license file from file system + cat "$UNITY_LICENSE_PATH" | tr -d '\r' > $FILE_PATH + fi # Activate license ACTIVATION_OUTPUT=$(xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \