mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2024-12-22 16:16:09 -07:00
fixme
This commit is contained in:
parent
7a8c60c186
commit
52acf3c68c
|
@ -13,7 +13,7 @@ USER_NAME="$6"
|
||||||
DESTINATION_REPOSITORY_USERNAME="$7"
|
DESTINATION_REPOSITORY_USERNAME="$7"
|
||||||
TARGET_BRANCH="$8"
|
TARGET_BRANCH="$8"
|
||||||
COMMIT_MESSAGE="$9"
|
COMMIT_MESSAGE="$9"
|
||||||
TARGET_DIRECTORY="$10"
|
TARGET_DIRECTORY="${10}"
|
||||||
|
|
||||||
if [ -z "$DESTINATION_REPOSITORY_USERNAME" ]
|
if [ -z "$DESTINATION_REPOSITORY_USERNAME" ]
|
||||||
then
|
then
|
||||||
|
@ -56,6 +56,10 @@ mv "$TEMP_DIR/.git" "$CLONE_DIR/.git"
|
||||||
echo "[+] Changing to $SOURCE_BEFORE_DIRECTORY"
|
echo "[+] Changing to $SOURCE_BEFORE_DIRECTORY"
|
||||||
cd $SOURCE_BEFORE_DIRECTORY
|
cd $SOURCE_BEFORE_DIRECTORY
|
||||||
|
|
||||||
|
|
||||||
|
echo "[+] List contecnts of $SOURCE_DIRECTORY"
|
||||||
|
ls $SOURCE_DIRECTORY
|
||||||
|
|
||||||
if [ ! -d "$SOURCE_DIRECTORY" ]
|
if [ ! -d "$SOURCE_DIRECTORY" ]
|
||||||
then
|
then
|
||||||
echo "ERROR: $SOURCE_DIRECTORY does not exist"
|
echo "ERROR: $SOURCE_DIRECTORY does not exist"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user