Updated unity actions.
This commit is contained in:
@@ -28,6 +28,15 @@ inputs:
|
||||
description: "Whether or not to use the graphics device when running Unity."
|
||||
required: false
|
||||
default: "true"
|
||||
catchErrors:
|
||||
description: "Whether or not errors should be handled."
|
||||
required: false
|
||||
sshPublicKey:
|
||||
description: "Public SSH key to use for git package restoration."
|
||||
required: false
|
||||
sshPrivateKey:
|
||||
description: "Private SSH key to use for git package restoration."
|
||||
required: false
|
||||
unityBuilder:
|
||||
description: "Whether or not to use the UnityBuilder instead of a Unity command."
|
||||
required: false
|
||||
@@ -71,6 +80,10 @@ runs:
|
||||
shell: bash
|
||||
- name: "Run Unity command."
|
||||
uses: act/unity/unity@master
|
||||
env:
|
||||
SSH_PUBLIC_KEY: ${{ inputs.sshPublicKey }}
|
||||
SSH_PRIVATE_KEY: ${{ inputs.sshPrivateKey }}
|
||||
CATCH_ERRORS: ${{ inputs.catchErrors }}
|
||||
with:
|
||||
serial: ${{ inputs.serial }}
|
||||
# serial: "activated"
|
||||
|
||||
@@ -21,4 +21,10 @@ if [[ -n "$UNITY_BUILDER" ]]; then
|
||||
else
|
||||
unity-editor $DEFAULT_ARGS $COMMAND
|
||||
fi
|
||||
echo "::endgroup::"
|
||||
echo "::endgroup::"
|
||||
|
||||
echo "exitCode=$RESULT" >> "$GITHUB_OUTPUT"
|
||||
|
||||
if [[ "$CATCH_ERRORS" != "true" ]]; then
|
||||
exit $RESULT
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user