fix(ci): trim newline from GIT_TOKEN secret
This commit is contained in:
@@ -21,9 +21,10 @@ jobs:
|
||||
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
|
||||
run: |
|
||||
apk add --no-cache git
|
||||
CLEAN_TOKEN=$(printf '%s' "${GIT_TOKEN}" | tr -d '\r\n')
|
||||
if [ ! -d ".git" ]; then
|
||||
git init
|
||||
git remote add origin "http://oauth2:${GIT_TOKEN}@git.a-crm.controlsystem.kz/AVTEX/XFlow.git"
|
||||
git remote add origin "http://oauth2:${CLEAN_TOKEN}@git.a-crm.controlsystem.kz/AVTEX/XFlow.git"
|
||||
fi
|
||||
git fetch origin master
|
||||
git reset --hard origin/master
|
||||
|
||||
Reference in New Issue
Block a user