Skip to content

Commit 60dc21b

Browse files
committed
add variable
1 parent df86ce1 commit 60dc21b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.gitlab/ci/jobs/5.1-synchro-github.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,22 @@
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"
1818
- git remote add github-ans https://root:$GITHUB_TOKEN@$GITHUB_URL
19-
- git pull github-ans main-klee
19+
- rm -fr ".git/rebase-merge"
20+
- git pull --no-rebase --no-edit github-ans main-klee
2021
- git push github-ans temp-branch:main-klee
22+
- git clean -f
23+
- git clean -df
2124
- git checkout synchro-github-ans
22-
- git branch -D temp-branch
25+
- git branch -D temp-branch
26+
- git remote rm github-ans

0 commit comments

Comments
 (0)