Skip to content

Commit fd1b784

Browse files
chore: skip SwiftFormat execution in CI environments
1 parent cf38c86 commit fd1b784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Samples/MobileBuyIntegration/MobileBuyIntegration.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
);
329329
runOnlyForDeploymentPostprocessing = 0;
330330
shellPath = /bin/sh;
331-
shellScript = "export PATH=\"/opt/homebrew/bin:$PATH\"\n\nif which swiftformat >/dev/null; then\n\tswiftformat \"${SRCROOT}\" \nelse \n\techo \"error: SwiftFormat not installed, download using \\\"brew install swiftformat\\\"\"\nfi\n";
331+
shellScript = "export PATH=\"/opt/homebrew/bin:$PATH\"\n\nif [ \"$CI\" = \"true\" ]; then\n echo \"Skipping SwiftFormat in CI environment\"\n exit 0\nfi\n\nif which swiftformat >/dev/null; then\n\tswiftformat \"${SRCROOT}\" \nelse \n\techo \"error: SwiftFormat not installed, download using \\\"brew install swiftformat\\\"\"\nfi\n";
332332
};
333333
/* End PBXShellScriptBuildPhase section */
334334

0 commit comments

Comments
 (0)