From 283f634c0826dc8cdec93ebd7de938f9328d6b3f Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Tue, 23 Jun 2020 15:01:06 +0300 Subject: [PATCH] Fix home variable and owner of workspace --- entrypoint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index ce04255..428d838 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,12 @@ #!/bin/bash +# GitHub sets root as owner of repository directory. Change it to user +sudo chown -R "$USER" "$GITHUB_WORKSPACE" +# GitHub sets HOME to /github/home, but Buildozer is installed to /home/user. Change HOME to user's home +export HOME=$HOME_DIR + # Run build sh -c "buildozer android debug" + +# Give access to root +sudo chown -R root "$GITHUB_WORKSPACE"