Skip to content

Allowing circleci to push podfile to branch #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,32 @@ jobs:
- restore_cache:
keys:
- pod-dependencies-{{ checksum "~/project/example/ios/Podfile" }}

- run:
working_directory: example/ios
name: Install Pods
command: pod install
command: pod install --repo-update

- run:
name: Run pod install
working_directory: example/ios
command: |
pod install

- run:
name: Configure Git user
command: |
git config --global user.email "[email protected]"
git config --global user.name "refactorer-bot"

- run:
name: Commit and push Podfile.lock
command: |
git add example/ios/Podfile.lock
git commit -m "chore: update Podfile.lock"
git remote set-url origin https://refactorer-bot:${GH_RW_TOKEN}@github.com/intercom/intercom-react-native
git push origin ${CIRCLE_BRANCH}
echo "Podfile.lock committed and pushed"

- save_cache:
key: pod-dependencies-{{ checksum "~/project/example/ios/Podfile" }}
Expand Down