mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2026-01-11 05:51:43 -07:00
Add target-branch output
This commit is contained in:
@@ -149,6 +149,10 @@ 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"
|
echo "[+] Switch to the TARGET_BRANCH"
|
||||||
|
echo "[+] git branch"
|
||||||
|
git branch
|
||||||
|
echo "[+] git branch -r"
|
||||||
|
git branch -r
|
||||||
git switch -c "$TARGET_BRANCH"
|
git switch -c "$TARGET_BRANCH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user