mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2025-09-03 15:35:45 -06:00
Fix typos in entrypoint.sh
This commit is contained in:
parent
7503ef4f2d
commit
b4bd2772f7
@ -17,11 +17,6 @@ COMMIT_USER_EMAIL="$7"
|
|||||||
COMMIT_USERNAME="$8"
|
COMMIT_USERNAME="$8"
|
||||||
COMMIT_MESSAGE="$9"
|
COMMIT_MESSAGE="$9"
|
||||||
|
|
||||||
if [ -z "$COMMIT_USER_NAME" ]
|
|
||||||
then
|
|
||||||
COMMIT_USERNAME="$DESTINATION_REPOSITORY_USERNAME"
|
|
||||||
fi
|
|
||||||
|
|
||||||
SOURCE_DIR=$(mktemp -d)
|
SOURCE_DIR=$(mktemp -d)
|
||||||
DESTINATION_DIR=$(mktemp -d)
|
DESTINATION_DIR=$(mktemp -d)
|
||||||
|
|
||||||
@ -61,4 +56,4 @@ git diff-index --quiet HEAD || git commit --message "$COMMIT_MESSAGE"
|
|||||||
|
|
||||||
echo "Pushing git commit"
|
echo "Pushing git commit"
|
||||||
# --set-upstream: sets de branch when pushing to a branch that does not exist
|
# --set-upstream: sets de branch when pushing to a branch that does not exist
|
||||||
git push origin --set-upstream "$TARGET_BRANCH"
|
git push origin --set-upstream "$DESTINATION_BRANCH"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user