Skip to content

Commit

Permalink
Fix ownership issue for new git version
Browse files Browse the repository at this point in the history
Signed-off-by: Riddhesh Sanghvi <[email protected]>
  • Loading branch information
mrrobot47 committed May 27, 2022
1 parent 25780e2 commit cd6ebd5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ function setup_ssh_access() {

function maybe_install_submodules() {

# Change directory ownership to container user due to issue https://github.com/actions/checkout/issues/760
# This will be changed to www-data or similar on deployment by deployer.
chown -R root: "$GITHUB_WORKSPACE"
# Check and update submodules if any
if [[ -f "$GITHUB_WORKSPACE/.gitmodules" ]]; then
# add github's public key
Expand Down

0 comments on commit cd6ebd5

Please sign in to comment.