fix(ci): use env for GIT_TOKEN secret
This commit is contained in:
@@ -17,11 +17,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
env:
|
||||
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
|
||||
run: |
|
||||
apk add --no-cache git
|
||||
if [ ! -d ".git" ]; then
|
||||
git init
|
||||
git remote add origin http://oauth2:${{ secrets.GIT_TOKEN }}@git.a-crm.controlsystem.kz/AVTEX/XFlow.git
|
||||
git remote add origin "http://oauth2:${GIT_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