Skip to content

Commit a489884

Browse files
committed
Update .gitlab-ci.yml file
1 parent 221944a commit a489884

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.gitlab-ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
stages:
2-
- sync
3-
41
sync_to_github:
5-
stage: sync
62
rules:
73
- if: $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH == "adamlui/userscripts"
8-
image: alpine/git
4+
image: alpine
95
script:
10-
- git push https://${GITHUB_SYNC_PAT}@github.com/adamlui/userscripts.git master --force -o ci.skip
6+
- apk add --no-cache git
7+
- git clone https://gitlab.com/adamlui/userscripts.git
8+
- cd userscripts
9+
- git push https://${GITHUB_SYNC_PAT}@github.com/adamlui/userscripts.git HEAD:master --force -o ci.skip

0 commit comments

Comments
 (0)