refactor: configure git safe directory for deployment
This commit is contained in:
@@ -34,6 +34,9 @@ jobs:
|
|||||||
set -e
|
set -e
|
||||||
APP_DIR=/opt/imphenbot
|
APP_DIR=/opt/imphenbot
|
||||||
|
|
||||||
|
# Configure git safe directory
|
||||||
|
git config --global --add safe.directory \$APP_DIR
|
||||||
|
|
||||||
# Clone or update repository
|
# Clone or update repository
|
||||||
if [ -d \"\$APP_DIR/.git\" ]; then
|
if [ -d \"\$APP_DIR/.git\" ]; then
|
||||||
echo 'Repository exists, pulling latest changes...'
|
echo 'Repository exists, pulling latest changes...'
|
||||||
|
|||||||
Reference in New Issue
Block a user