mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2024-12-21 23:56:09 -07:00
Use {} in the variable expansion
This commit is contained in:
parent
084156bc22
commit
483689a71c
|
@ -4,17 +4,17 @@ set -e # if a command fails it stops the execution
|
|||
set -u # script fails if trying to access to an undefined variable
|
||||
|
||||
echo "[+] Action start"
|
||||
SOURCE_BEFORE_DIRECTORY="$1"
|
||||
SOURCE_DIRECTORY="$2"
|
||||
DESTINATION_GITHUB_USERNAME="$3"
|
||||
DESTINATION_REPOSITORY_NAME="$4"
|
||||
GITHUB_SERVER="$5"
|
||||
USER_EMAIL="$6"
|
||||
USER_NAME="$7"
|
||||
DESTINATION_REPOSITORY_USERNAME="$8"
|
||||
TARGET_BRANCH="$9"
|
||||
COMMIT_MESSAGE="$10"
|
||||
TARGET_DIRECTORY="$11"
|
||||
SOURCE_BEFORE_DIRECTORY="${1}"
|
||||
SOURCE_DIRECTORY="${2}"
|
||||
DESTINATION_GITHUB_USERNAME="${3}"
|
||||
DESTINATION_REPOSITORY_NAME="${4}"
|
||||
GITHUB_SERVER="${5}"
|
||||
USER_EMAIL="${6}"
|
||||
USER_NAME="${7}"
|
||||
DESTINATION_REPOSITORY_USERNAME="${8}"
|
||||
TARGET_BRANCH="${9}"
|
||||
COMMIT_MESSAGE="${10}"
|
||||
TARGET_DIRECTORY="${11}"
|
||||
|
||||
if [ -z "$DESTINATION_REPOSITORY_USERNAME" ]
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue
Block a user