Skip to content

Commit d8d28ef

Browse files
committed
add variable
1 parent 1723fb5 commit d8d28ef

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.gitlab/ci/jobs/5.1-synchro-github.yml~fix branch name

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,19 @@
55
rules:
66
- !reference [.syncho-github-ans, rules]
77
variables:
8-
GITHUB_TOKEN: #add to gitlab variables when fix
98
GITHUB_URL: github.com/ansforge/DesignSystem.git
109
script:
10+
- apk add git
1111
- git config --global user.name "${GITLAB_USER_NAME}"
1212
- git config --global user.email "${GITLAB_USER_EMAIL}"
13-
- git checkout -b temp-branch
13+
- git checkout -B temp-branch
1414
- git rm -r --cached .
1515
- git add .gitignore
1616
- git add *
1717
- git commit -m "Synchro Klee ANS"
18-
- git remote add github-ans https://root:$GITHUB_TOKEN@$GITHUB_URL
19-
- git pull github-ans main-klee
18+
- git remote set-url github-ans https://root:$GITHUB_TOKEN@$GITHUB_URL
19+
- git pull --rebase github-ans main-klee
2020
- git push github-ans temp-branch:main-klee
2121
- git checkout synchro-github-ans
22-
- git branch -D temp-branch
22+
- git branch -D temp-branch
23+
- git remote rm github-ans

0 commit comments

Comments
 (0)