Updated unity actions.

This commit is contained in:
2025-06-27 22:44:07 -07:00
parent 050f1f6918
commit 0232664b05
5 changed files with 149 additions and 27 deletions

View File

@@ -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"

View File

@@ -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