ci(deploy): allow git pull in deploy dir owned by another user
PR — Ouverture automatique / create-pr (push) Successful in 2s
PR — Ouverture automatique / create-pr (push) Successful in 2s
This commit is contained in:
@@ -28,6 +28,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
dir="${DEPLOY_DIR:-/srv/apps/cohaise-cloud/CoHaiSe-CLOUD}"
|
dir="${DEPLOY_DIR:-/srv/apps/cohaise-cloud/CoHaiSe-CLOUD}"
|
||||||
|
# The deploy directory may be owned by another user than the runner:
|
||||||
|
# git refuses to operate there without an explicit safe.directory.
|
||||||
|
git config --global --add safe.directory "$dir"
|
||||||
cd "$dir"
|
cd "$dir"
|
||||||
git pull --ff-only origin main
|
git pull --ff-only origin main
|
||||||
# Image builds compile and typecheck every workspace (tsc): no Node
|
# Image builds compile and typecheck every workspace (tsc): no Node
|
||||||
|
|||||||
Reference in New Issue
Block a user