Sha256: 90a35ac9ee6bd6addb01c8f7d586688eb31b4bbe39c14212eb70b74b64263d80
Contents?: true
Size: 1.27 KB
Versions: 529
Compression:
Stored size: 1.27 KB
Contents
module Fastlane module Actions class GitTagExistsAction < Action def self.run(params) result = Actions.sh("git rev-parse -q --verify refs/tags/#{params[:tag].shellescape} || true", log: FastlaneCore::Globals.verbose?).chomp !result.empty? end ##################################################### # @!group Documentation ##################################################### def self.description "Checks if the git tag with the given name exists in the current repo" end def self.details nil end def self.available_options [ FastlaneCore::ConfigItem.new(key: :tag, description: "The tag name that should be checked") ] end def self.return_value "Boolean value whether the tag exists or not" end def self.output [ ] end def self.authors ["antondomashnev"] end def self.is_supported?(platform) true end def self.example_code [ 'if git_tag_exists(tag: "1.1.0") UI.message("Found it 🚀") end' ] end def self.category :source_control end end end end
Version data entries
529 entries across 529 versions & 1 rubygems