We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 221944a commit a489884Copy full SHA for a489884
.gitlab-ci.yml
@@ -1,10 +1,9 @@
1
-stages:
2
- - sync
3
-
4
sync_to_github:
5
- stage: sync
6
rules:
7
- if: $CI_COMMIT_BRANCH == "master" && $CI_PROJECT_PATH == "adamlui/userscripts"
8
- image: alpine/git
+ image: alpine
9
script:
10
- - git push https://${GITHUB_SYNC_PAT}@github.com/adamlui/userscripts.git master --force -o ci.skip
+ - apk add --no-cache git
+ - git clone https://gitlab.com/adamlui/userscripts.git
+ - cd userscripts
+ - git push https://${GITHUB_SYNC_PAT}@github.com/adamlui/userscripts.git HEAD:master --force -o ci.skip
0 commit comments