|
14 | 14 | RSYNC_SITECORE_API_SRC_SERVICES_EXCLUDES: "--exclude 'src/services/contentful/' --exclude 'src/services/contentful.service.ts' --exclude 'src/services/wordpress.service.ts'" # Include only sitecore services |
15 | 15 | RSYNC_CONTENTFUL_API_SRC_SERVICES_EXCLUDES: "--exclude 'src/services/wordpress.service.ts' --exclude 'src/services/sitecore.service.ts'" # Include only contentful services |
16 | 16 | RSYNC_WORDPRESS_API_SRC_SERVICES_EXCLUDES: "--exclude 'src/services/contentful/' --exclude 'src/services/contentful.service.ts' --exclude 'src/services/sitecore.service.ts'" # Include only wordpress services |
17 | | - RSYNC_SITECORE_UPLOAD_API_SRC_EXCLUDES: "--exclude 'migration-contentful/' --exclude 'migration-wordpress/' --exclude 'controllers/wordpress/' --exclude 'models/contentful.json' --exclude 'models/wordpress.json' --exclude 'services/contentful/' --exclude 'validators/aem/' --exclude 'validators/contentful/' --exclude 'validators/wordpress/'" # Include only sitecore upload-api |
18 | | - RSYNC_CONTENTFUL_UPLOAD_API_SRC_EXCLUDES: "--exclude 'migration-sitecore/' --exclude 'migration-wordpress/' --exclude 'controllers/sitecore/' --exclude 'models/wordpress.json' --exclude 'validators/aem/' --exclude 'validators/sitecore/' --exclude 'validators/wordpress/'" # Include only contentful upload-api |
19 | | - RSYNC_WORDPRESS_UPLOAD_API_SRC_EXCLUDES: "--exclude 'migration-sitecore/' --exclude 'migration-contentful/' --exclude 'controllers/sitecore/' --exclude 'models/contentful.json' --exclude 'validators/aem/' --exclude 'validators/sitecore/' --exclude 'validators/contentful/'" # Include only wordpress upload-api |
| 17 | + RSYNC_SITECORE_UPLOAD_API_SRC_EXCLUDES: "--exclude 'controllers/wordpress/' --exclude 'models/contentful.json' --exclude 'models/wordpress.json' --exclude 'services/contentful/' --exclude 'validators/aem/' --exclude 'validators/contentful/' --exclude 'validators/wordpress/'" # Include only sitecore upload-api |
| 18 | + RSYNC_CONTENTFUL_UPLOAD_API_SRC_EXCLUDES: "--exclude 'controllers/sitecore/' --exclude 'models/wordpress.json' --exclude 'validators/aem/' --exclude 'validators/sitecore/' --exclude 'validators/wordpress/'" # Include only contentful upload-api |
| 19 | + RSYNC_WORDPRESS_UPLOAD_API_SRC_EXCLUDES: "--exclude 'controllers/sitecore/' --exclude 'models/contentful.json' --exclude 'validators/aem/' --exclude 'validators/sitecore/' --exclude 'validators/contentful/'" # Include only wordpress upload-api |
20 | 20 | jobs: |
21 | 21 | sync-on-merge: |
22 | 22 | runs-on: ubuntu-latest |
|
57 | 57 | ui: |
58 | 58 | - 'ui/**' |
59 | 59 | upload-api: |
60 | | - - 'upload-api/**' |
| 60 | + - 'upload-api/src/**' |
61 | 61 | migration-sitecore: |
62 | 62 | - 'upload-api/migration-sitecore/**' |
63 | 63 | migration-contentful: |
|
88 | 88 | git clone https://x-access-token:${{ secrets.GH_PAT }}@github.com/${{ env.SITECORE_REPO }}.git |
89 | 89 | cd migration-tool-sitecore |
90 | 90 | git checkout -b sync-from-migration-v2-${{ github.event.pull_request.number }} |
| 91 | + git pull origin ${{ env.BRANCH }} |
91 | 92 | rsync -av --delete ${{ env.RSYNC_SITECORE_API_SRC_SERVICES_EXCLUDES }} ../api/ ./api/ |
92 | 93 | rsync -av --delete ../cli/ ./cli/ |
93 | 94 | rsync -av --delete ../ui/ ./ui/ |
@@ -132,6 +133,7 @@ jobs: |
132 | 133 | git clone https://x-access-token:${{ secrets.GH_PAT }}@github.com/${{ env.CONTENTFUL_REPO }}.git |
133 | 134 | cd migration-tool-contentful |
134 | 135 | git checkout -b sync-from-migration-v2-${{ github.event.pull_request.number }} |
| 136 | + git pull origin ${{ env.BRANCH }} |
135 | 137 | rsync -av --delete ${{ env.RSYNC_CONTENTFUL_API_SRC_SERVICES_EXCLUDES }} ../api/ ./api/ |
136 | 138 | rsync -av --delete ../cli/ ./cli/ |
137 | 139 | rsync -av --delete ../ui/ ./ui/ |
@@ -176,6 +178,7 @@ jobs: |
176 | 178 | git clone https://x-access-token:${{ secrets.GH_PAT }}@github.com/${{ env.WORDPRESS_REPO }}.git |
177 | 179 | cd migration-tool-wordpress |
178 | 180 | git checkout -b sync-from-migration-v2-${{ github.event.pull_request.number }} |
| 181 | + git pull origin ${{ env.BRANCH }} |
179 | 182 | rsync -av --delete ${{ env.RSYNC_WORDPRESS_API_SRC_SERVICES_EXCLUDES }} ../api/ ./api/ |
180 | 183 | rsync -av --delete ../cli/ ./cli/ |
181 | 184 | rsync -av --delete ../ui/ ./ui/ |
|
0 commit comments