update auto auth

This commit is contained in:
Joseph Le 2023-10-13 17:51:31 +11:00
parent f4e4057a74
commit 851f7ac044
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,8 @@
# Đường dẫn tới tệp index.js # Đường dẫn tới tệp index.js
indexjs_path=$HOOK_PATH/index.js indexjs_path=$HOOK_PATH/index.js
project_path=$HOOK_PATH project_path=$HOOK_PATH
REPOSITORY_AUTH="https://$GIT_USERNAME:$GIT_PASSWORD@$(echo $GIT_REPOSITORY | sed 's#https://##')" PASSWORD=$(echo "$GIT_PASSWORD" | sed 's/@/%40/g')
REPOSITORY_AUTH="https://$GIT_USERNAME:$PASSWORD@$(echo $GIT_REPOSITORY | sed 's#https://##')"
cd "$PROJECT_PATH" && cd "$PROJECT_PATH" &&
SET_ORIGIN=$(git remote set-url origin $REPOSITORY_AUTH) SET_ORIGIN=$(git remote set-url origin $REPOSITORY_AUTH)