File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,14 @@ chmod 600 "$SSH_PATH/deploy_key"
12
12
13
13
GIT_COMMAND=" git push dokku@$HOST :$PROJECT "
14
14
15
+ # prevent dubious ownership error due to ownership mismatch in parent directories
16
+ # see: https://github.com/vitalyliber/dokku-github-action/issues/25
17
+ echo " Adding repository directory to the git global config as a safe directory"
18
+ git config --global --add safe.directory /github/workspace
19
+
15
20
echo " Testing git remote output"
16
21
git remote show origin 2>&1
17
22
18
-
19
23
echo " Detect the project default branch: master or main"
20
24
DEFAULT_BRANCH=" $( git remote show origin | awk ' /HEAD branch/ {print $NF}' ) "
21
25
@@ -57,10 +61,6 @@ if [ -n "$APP_CONFIG" ]; then
57
61
$GIT_SSH_COMMAND dokku@$HOST config:set --no-restart $PROJECT $APP_CONFIG > /dev/null 2>&1
58
62
fi
59
63
60
- # prevent dubious ownership error due to ownership mismatch in parent directories
61
- # see: https://github.com/vitalyliber/dokku-github-action/issues/25
62
- echo " Adding repository directory to the git global config as a safe directory"
63
- git config --global --add safe.directory /github/workspace
64
64
65
65
echo " The deploy is starting"
66
66
You can’t perform that action at this time.
0 commit comments