mirror of
https://github.com/ArtemSBulgakov/buildozer-action.git
synced 2024-08-16 10:09:52 +02:00
Fix home variable and owner of workspace
This commit is contained in:
parent
66ae8d31bc
commit
283f634c08
1 changed files with 8 additions and 0 deletions
|
@ -1,4 +1,12 @@
|
||||||
#!/bin/bash
|
#!/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
|
# Run build
|
||||||
sh -c "buildozer android debug"
|
sh -c "buildozer android debug"
|
||||||
|
|
||||||
|
# Give access to root
|
||||||
|
sudo chown -R root "$GITHUB_WORKSPACE"
|
||||||
|
|
Loading…
Reference in a new issue