Fixed ci config file for source sync job (#200)
author윤정현/Common Platform Lab(SR)/Staff Engineer/삼성전자 <jh0506.yun@samsung.com>
Tue, 14 Apr 2020 01:37:03 +0000 (10:37 +0900)
committer안주원/Common Platform Lab(SR)/Principal Engineer/삼성전자 <juwon.ahn@samsung.com>
Tue, 14 Apr 2020 01:37:03 +0000 (10:37 +0900)
.circleci/config.yml

index 7643f90..e454ae4 100644 (file)
@@ -24,8 +24,16 @@ jobs:
             git remote add spin ssh://jh0506.yun@165.213.149.170:29418/platform/core/csapi/xsf
             git fetch spin
             git push -f spin HEAD:tizen_wearable
+
+  source-sync:
+    docker:
+      - image: mcr.microsoft.com/dotnet/core/sdk:3.0
+    steps:
+      - checkout
+      - run:
+          command: |
             git config --local user.name "TizenAPI-Bot"
-            git config --local user.email "tizenapi@samsung.com"         
+            git config --local user.email "tizenapi@samsung.com"
             git checkout dev
             git cherry-pick master
             git push origin dev
@@ -108,6 +116,14 @@ workflows:
               only:
                 - master
 
+  sync:
+    jobs:
+      - source-sync:
+          filters:
+            branches:
+              only:
+                - master
+
   nightly:
     triggers:
       - schedule: