Skip to content

Commit 57072ef

Browse files
none: allowing circleci to push podfile to branch
1 parent eb1cde7 commit 57072ef

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.circleci/config.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,31 @@ jobs:
176176
- restore_cache:
177177
keys:
178178
- pod-dependencies-{{ checksum "~/project/example/ios/Podfile" }}
179+
179180
- run:
180181
working_directory: example/ios
181182
name: Install Pods
182-
command: pod install
183+
command: pod install --repo-update
184+
185+
- run:
186+
name: Run pod install
187+
working_directory: example/ios
188+
command: |
189+
pod install
190+
191+
- run:
192+
name: Configure Git user
193+
command: |
194+
git config --global user.email "[email protected]"
195+
git config --global user.name "CircleCI Build"
196+
197+
- run:
198+
name: Commit and push Podfile.lock
199+
command: |
200+
git add example/ios/Podfile.lock
201+
git commit -m "chore: update Podfile.lock"
202+
git push origin ${CIRCLE_BRANCH}
203+
echo "Podfile.lock committed and pushed"
183204
184205
- save_cache:
185206
key: pod-dependencies-{{ checksum "~/project/example/ios/Podfile" }}

0 commit comments

Comments
 (0)