mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2024-12-22 08:06:10 -07:00
Add target-branch output
This commit is contained in:
parent
d63a102c8f
commit
3fc9348237
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user