Skip to content

Commit 701a894

Browse files
authored
INFRA-3041:removed extra stable sync PR files (#160)
1 parent bfb5e6f commit 701a894

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/scripts/stable-sync.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,18 @@ async function runGitCommands() {
8686
if (process.env.REPO === 'mobile') {
8787
console.log('Executing mobile-specific commands...');
8888

89-
await exec(`git checkout origin/${baseBranch} -- bitrise.yml`);
90-
console.log(`Executed: git checkout origin/${baseBranch} -- bitrise.yml`);
89+
// Preserve these files from main to avoid showing them as changes in the PR
90+
await exec(`git checkout origin/main -- bitrise.yml`);
91+
console.log(`Executed: git checkout origin/main -- bitrise.yml`);
9192

92-
await exec(`git checkout origin/${baseBranch} -- android/app/build.gradle`);
93-
console.log(`Executed: git checkout origin/${baseBranch} -- android/app/build.gradle`);
93+
await exec(`git checkout origin/main -- android/app/build.gradle`);
94+
console.log(`Executed: git checkout origin/main -- android/app/build.gradle`);
9495

95-
await exec(`git checkout origin/${baseBranch} -- ios/MetaMask.xcodeproj/project.pbxproj`);
96-
console.log(`Executed: git checkout origin/${baseBranch} -- ios/MetaMask.xcodeproj/project.pbxproj`);
96+
await exec(`git checkout origin/main -- ios/MetaMask.xcodeproj/project.pbxproj`);
97+
console.log(`Executed: git checkout origin/main -- ios/MetaMask.xcodeproj/project.pbxproj`);
9798

98-
await exec(`git checkout origin/${baseBranch} -- package.json`);
99-
console.log(`Executed: git checkout origin/${baseBranch} -- package.json`);
99+
await exec(`git checkout origin/main -- package.json`);
100+
console.log(`Executed: git checkout origin/main -- package.json`);
100101
}
101102
// If REPO is not set or is 'extension', skip repo-specific commands
102103
else {

0 commit comments

Comments
 (0)