@@ -72,7 +72,7 @@ Create `.github/workflows/sync-gitlab.yml` with the following content:
7272
7373name : 🔄 Sync to GitLab
7474
75- on : \ [push, pull\_request\ ]
75+ on : [push, pull_request ]
7676
7777jobs :
7878
@@ -94,11 +94,11 @@ jobs:
9494
9595
9696
97- \ # ### Step 4: Test the Synchronization
97+ #### Step 4: Test the Synchronization
9898
99- \`\`\ ` bash
99+ `` `bash
100100
101- \ # Make a test commit
101+ # Make a test commit
102102
103103echo " Test sync" >> test-file.txt
104104
@@ -118,75 +118,62 @@ git push origin main
118118
119119\# 3. Visit your GitLab repository to see the mirrored commit
120120
121- \`\`\ `
121+ `` `
122122
123123
124124
125- \ # # 📁 Project Structure
125+ ## 📁 Project Structure
126126
127- \`\`\ `
127+ `` `
128128
129129DevOps-Github-Gitlab-CI-CD-Automation-Yml/
130-
131130├── .github/
132-
133131│ └── workflows/
134-
135132│ └── sync-gitlab.yml # Main synchronization workflow
136-
137133├── docs/ # Documentation (optional)
138-
139134├── examples/ # Example configurations
140-
141135├── README.md # This documentation
142-
143136├── LICENSE # MIT License
144-
145137└── .gitignore # Git ignore rules
146138
147- \`\`\ `
139+ `` `
148140
149141
150142
151- \ # # 🔧 Configuration Options
143+ ## 🔧 Configuration Options
152144
153145
154146
155- \ # ## Customize for Your Project
147+ ### Customize for Your Project
156148
157149Modify the workflow file with your specific details:
158150
159151
160152
161- \`\`\` yaml
162-
153+ ``` yaml
163154env :
164-
165- GITLAB\_ USER: "your-gitlab-username"
166-
167- GITLAB\_ PROJECT: "your-gitlab-project-name"
168-
169- BRANCHES: "main develop feature/\* " # Branches to sync
170-
171- \`\`\`
155+ GITLAB_USER : " your-gitlab-username"
156+ GITLAB_PROJECT : " your-gitlab-project-name"
157+ BRANCHES : " main develop feature/*" # Branches to sync
158+ ` ` `
172159
173160
174161
175- \ # ## Advanced Workflow Features
162+ ### Advanced Workflow Features
176163
177- \`\`\ ` yaml
164+ ` ` ` yaml
178165
179- \ # Sync all branches
166+ # Sync all branches
180167
181168on :
182169
183170 push :
184171
185- branches: \ [ main, develop, feature/\*\ ]
172+ branches : [main, develop, feature/* ]
186173
187174
188175
189- \ # Include tags
176+ # Include tags
190177
191178steps :
192179
0 commit comments