From 23c84debae9e82aa945dfcfcddd8ce5a94340bd4 Mon Sep 17 00:00:00 2001 From: Scion Date: Sun, 12 Mar 2023 18:47:55 -0700 Subject: [PATCH] test --- unity-command/Dockerfile | 4 ++-- unity-command/entrypoint.sh | 2 +- unity/action.yaml | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/unity-command/Dockerfile b/unity-command/Dockerfile index fee7ee3..7fe8913 100644 --- a/unity-command/Dockerfile +++ b/unity-command/Dockerfile @@ -10,8 +10,8 @@ RUN chmod +x /entrypoint.sh COPY install-dotnet.sh / RUN bash /install-dotnet.sh -COPY UnityBuilder /usr/bin/ -RUN chmod +x /usr/bin/UnityBuilder +COPY UnityBuilder /usr/local/bin/ +RUN chmod +x /usr/local/bin/UnityBuilder ENTRYPOINT ["/entrypoint.sh"] USER unity \ No newline at end of file diff --git a/unity-command/entrypoint.sh b/unity-command/entrypoint.sh index 42dd292..92e9602 100644 --- a/unity-command/entrypoint.sh +++ b/unity-command/entrypoint.sh @@ -27,7 +27,7 @@ fi if [[ "$SERIAL" == "public" ]]; then unity-editor $DEFAULT_ARGS -serial $SERIAL -username $EMAIL -password $PASSWORD else - /usr/bin/UnityBuilder -i unity-editor -u $EMAIL -p $PASSWORD + UnityBuilder -i unity-editor -u $EMAIL -p $PASSWORD fi #Run the command. diff --git a/unity/action.yaml b/unity/action.yaml index 2cdbf64..861db83 100644 --- a/unity/action.yaml +++ b/unity/action.yaml @@ -19,6 +19,7 @@ runs: #This is a base "mock" image which is replaced by the correct image in the "unity-command" action at runtime. image: docker://unityci/base:latest args: + - /entrypoint.sh - ${{ inputs.serial }} - ${{ inputs.email }} - ${{ inputs.password }}