Sha256: 3fc1fed2b8abeda1f4a8142e608fb77a1ce698b934235aa1c4495517d6acb163
Contents?: true
Size: 906 Bytes
Versions: 6
Compression:
Stored size: 906 Bytes
Contents
module Fastlane module Actions # Adds a git tag to the current commit class PushToGitRemoteAction def self.run(params) options = params.first remote = (options && options[:remote]) || 'origin' force = (options && options[:force]) || false local_branch = (options && options[:branch]) || 'master' remote_branch = (options && options[:branch]) || local_branch # construct our command as an array of components command = [ 'git', 'push', remote, "#{local_branch}:#{remote_branch}", '--tags' ] # optionally add the force component command << '--force' if force # execute our command puts Actions.sh('pwd') Actions.sh(command.join(' ')) Helper.log.info 'Sucesfully pushed to remote.' end end end end
Version data entries
6 entries across 6 versions & 1 rubygems