mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2025-01-10 09:09:00 -07:00
Make /github/workspace safe directory
This commit is contained in:
parent
f93a9d944e
commit
4f6fb412f1
|
@ -65,6 +65,7 @@ echo "[+] Cloning destination git repository $DESTINATION_REPOSITORY_NAME"
|
|||
# Setup git
|
||||
git config --global user.email "$USER_EMAIL"
|
||||
git config --global user.name "$USER_NAME"
|
||||
git config --global --add safe.directory /github/workspace
|
||||
|
||||
if ! git clone --single-branch --depth 1 --branch "$TARGET_BRANCH" "$GIT_CMD_REPOSITORY" "$CLONE_DIR"; then
|
||||
if ${CREATE_TARGET_BRANCH} && git clone --single-branch --depth 1 "$GIT_CMD_REPOSITORY" "$CLONE_DIR"; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user