This commit is contained in:
2023-08-05 22:55:15 -07:00
parent c639b13799
commit 7ce207c7a5
2 changed files with 5 additions and 1 deletions

View File

@@ -63,7 +63,7 @@ runs:
run: | run: |
COMMAND="${{ inputs.command }}" COMMAND="${{ inputs.command }}"
if [[ "{{ inputs.useGraphics }}" != "true" ]]; then if [[ "{{ inputs.useGraphics }}" != "true" ]]; then
COMMAND="$COMMAND -nographics" COMMAND="-nographics $COMMAND"
fi fi
echo "command=$COMMAND" echo "command=$COMMAND"
- name: "Run Unity command." - name: "Run Unity command."

View File

@@ -9,12 +9,16 @@ rm -rf /home/unity/.config/unity3d
bash /scripts/add_ssh_keys.sh bash /scripts/add_ssh_keys.sh
if [[ "$SERIAL" != "activated" ]]; then if [[ "$SERIAL" != "activated" ]]; then
echo "::group::Activating Unity License"
bash /scripts/activate_license.sh "$SERIAL" "$EMAIL" "$PASSWORD" bash /scripts/activate_license.sh "$SERIAL" "$EMAIL" "$PASSWORD"
echo "::endgroup::"
fi fi
echo "::group::Running Unity Command"
#Run the command. #Run the command.
if [[ -n "$UNITY_BUILDER" ]]; then if [[ -n "$UNITY_BUILDER" ]]; then
UnityBuilder $COMMAND UnityBuilder $COMMAND
else else
unity-editor $DEFAULT_ARGS $COMMAND unity-editor $DEFAULT_ARGS $COMMAND
fi fi
echo "::endgroup::"