Method: Fastlane::Actions::CommitVersionBumpAction.example_code

Defined in:
fastlane/lib/fastlane/actions/commit_version_bump.rb

.example_codeObject



217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'fastlane/lib/fastlane/actions/commit_version_bump.rb', line 217

def self.example_code
  [
    'commit_version_bump',
    'commit_version_bump(
      message: "Version Bump",                    # create a commit with a custom message
      xcodeproj: "./path/to/MyProject.xcodeproj"  # optional, if you have multiple Xcode project files, you must specify your main project here
    )',
    'commit_version_bump(
      settings: true # Include Settings.bundle/Root.plist
    )',
    'commit_version_bump(
      settings: "About.plist" # Include Settings.bundle/About.plist
    )',
    'commit_version_bump(
      settings: %w[About.plist Root.plist] # Include more than one plist from Settings.bundle
    )',
    'commit_version_bump(
      include: %w[package.json custom.cfg] # include other updated files as part of the version bump
    )',
    'commit_version_bump(
      ignore: /OtherProject/ # ignore files matching a regular expression
    )',
    'commit_version_bump(
      no_verify: true           # optional, default: false
    )'
  ]
end