mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2025-09-03 15:35:45 -06:00
Update comment and output
This commit is contained in:
parent
cbe757f8d8
commit
d63a102c8f
@ -143,13 +143,12 @@ COMMIT_MESSAGE="${COMMIT_MESSAGE/ORIGIN_COMMIT/$ORIGIN_COMMIT}"
|
|||||||
COMMIT_MESSAGE="${COMMIT_MESSAGE/\$GITHUB_REF/$GITHUB_REF}"
|
COMMIT_MESSAGE="${COMMIT_MESSAGE/\$GITHUB_REF/$GITHUB_REF}"
|
||||||
|
|
||||||
echo "[+] Set directory is safe ($CLONE_DIR)"
|
echo "[+] Set directory is safe ($CLONE_DIR)"
|
||||||
# Related to https://github.com/cpina/github-action-push-to-another-repository/issues/64 and https://github.com/cpina/github-action-push-to-another-repository/issues/64
|
# Related to https://github.com/cpina/github-action-push-to-another-repository/issues/64
|
||||||
# TODO: review before releasing it as a version
|
|
||||||
git config --global --add safe.directory "$CLONE_DIR"
|
git config --global --add safe.directory "$CLONE_DIR"
|
||||||
|
|
||||||
|
|
||||||
if [ "$CREATE_TARGET_BRANCH_IF_NEEDED" = "true" ]
|
if [ "$CREATE_TARGET_BRANCH_IF_NEEDED" = "true" ]
|
||||||
then
|
then
|
||||||
|
echo "[+] Switch to the TARGET_BRANCH"
|
||||||
git switch -c "$TARGET_BRANCH"
|
git switch -c "$TARGET_BRANCH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user