From 57072efb5f59cdce1c2653901f7bfe8d76b6919f Mon Sep 17 00:00:00 2001 From: kilian-tennyson Date: Mon, 7 Jul 2025 13:15:12 +0100 Subject: [PATCH 1/6] none: allowing circleci to push podfile to branch --- .circleci/config.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 03cfe293..874f0458 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -176,10 +176,31 @@ 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 "ci-build@intercom.io" + git config --global user.name "CircleCI Build" + + - run: + name: Commit and push Podfile.lock + command: | + git add example/ios/Podfile.lock + git commit -m "chore: update Podfile.lock" + git push origin ${CIRCLE_BRANCH} + echo "Podfile.lock committed and pushed" - save_cache: key: pod-dependencies-{{ checksum "~/project/example/ios/Podfile" }} From 608c814409161b9789fc14261144952736563727 Mon Sep 17 00:00:00 2001 From: kilian-tennyson Date: Tue, 8 Jul 2025 11:40:59 +0100 Subject: [PATCH 2/6] none: using secret to allow circleci to push to branch --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 874f0458..0e07a7dd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -199,6 +199,7 @@ jobs: command: | git add example/ios/Podfile.lock git commit -m "chore: update Podfile.lock" + git remote set-url origin https://${GH_RW_TOKEN}@github.com/intercom/intercom-react-native.git git push origin ${CIRCLE_BRANCH} echo "Podfile.lock committed and pushed" From ba3a483ee3ac08b4a4843c2fe80c56bef55d7fe6 Mon Sep 17 00:00:00 2001 From: kilian-tennyson Date: Tue, 8 Jul 2025 12:20:02 +0100 Subject: [PATCH 3/6] none: trying to fix circle ci not pushing --- .circleci/config.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0e07a7dd..1f146e27 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -189,17 +189,19 @@ jobs: pod install - run: - name: Configure Git user - command: | - git config --global user.email "ci-build@intercom.io" - git config --global user.name "CircleCI Build" - + name: Debug environment variables + command: | + if [ -n "$GH_RW_TOKEN" ]; then + echo "GH_RW_TOKEN is set" + else + echo "GH_RW_TOKEN is NOT set" + fi - 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://${GH_RW_TOKEN}@github.com/intercom/intercom-react-native.git + git remote set-url origin https://refactorer-bot:${GH_RW_TOKEN}@github.com/intercom/intercom-react-native.git git push origin ${CIRCLE_BRANCH} echo "Podfile.lock committed and pushed" From 34ae37e9fd6496628041141037a5ee2079212043 Mon Sep 17 00:00:00 2001 From: kilian-tennyson Date: Tue, 8 Jul 2025 13:06:12 +0100 Subject: [PATCH 4/6] none: removing step to check for secret --- .circleci/config.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1f146e27..d3940bc1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -187,15 +187,6 @@ jobs: working_directory: example/ios command: | pod install - - - run: - name: Debug environment variables - command: | - if [ -n "$GH_RW_TOKEN" ]; then - echo "GH_RW_TOKEN is set" - else - echo "GH_RW_TOKEN is NOT set" - fi - run: name: Commit and push Podfile.lock command: | From e9485c48f4350f5583240fdf3b6e43acb95ba46e Mon Sep 17 00:00:00 2001 From: kilian-tennyson Date: Tue, 8 Jul 2025 13:11:36 +0100 Subject: [PATCH 5/6] none: adding username email for refactorer --- .circleci/config.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d3940bc1..0ab50098 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -187,12 +187,19 @@ jobs: working_directory: example/ios command: | pod install + + - run: + name: Configure Git user + command: | + git config --global user.email "github.refactorer.service.account@intercom.io" + 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 + git remote set-url origin https://${GH_RW_TOKEN}@github.com/intercom/intercom-react-native.git git push origin ${CIRCLE_BRANCH} echo "Podfile.lock committed and pushed" From 5580045e46e4678ea12f9f7194f7864fbc1d12e1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 8 Jul 2025 13:48:18 +0100 Subject: [PATCH 6/6] none: adding username to refactorer bot --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0ab50098..ea5c11c5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -199,7 +199,7 @@ jobs: command: | git add example/ios/Podfile.lock git commit -m "chore: update Podfile.lock" - git remote set-url origin https://${GH_RW_TOKEN}@github.com/intercom/intercom-react-native.git + 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"