Skip to content

Commit 1d16b8b

Browse files
committed
Added sync GitLab to GitHub
1 parent 1dbc116 commit 1d16b8b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/sync-changes-to-gitlab.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,6 @@ jobs:
2222
fetch-depth: 0
2323

2424
- name: Push changes to gitlab.com/kudoai/chatgpt-js
25-
run: git push --force https://oauth2:${{ secrets.GITLAB_SYNC_PAT }}@gitlab.com/kudoai/chatgpt-js.git main
25+
run: |
26+
git push --force -o ci.skip \
27+
https://oauth2:${{ secrets.GITLAB_SYNC_PAT }}@gitlab.com/kudoai/chatgpt-js.git main

.gitlab-ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
sync_to_github:
2+
rules:
3+
- if: $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH == "kudoai/chatgpt-js"
4+
image: alpine
5+
script:
6+
- apk add --no-cache git
7+
- git clone https://gitlab.com/kudoai/chatgpt-js.git
8+
- git push --force -o ci.skip https://${GITHUB_SYNC_PAT}@github.com/KudoAI/chatgpt.js.git HEAD:main

0 commit comments

Comments
 (0)