Sha256: 3aeba49ccfe75454a0a910e8596ee70be102778ec14d947b34b9524ea4655be0
Contents?: true
Size: 938 Bytes
Versions: 29
Compression:
Stored size: 938 Bytes
Contents
module Fastlane module Actions module SharedValues RELEASE_NOTES = :RELEASE_NOTES end class ReleaseNotesAction < Action def self.run(config) current_tag = sh "git describe --exact-match --tags HEAD" tag_info = sh "git cat-file -p #{current_tag}" release_notes = tag_info.split("\n").drop(5).join("\n") UI.success "Extracted release notes:\n#{release_notes}" Actions.lane_context[SharedValues::RELEASE_NOTES] = release_notes ENV[SharedValues::RELEASE_NOTES.to_s] = release_notes release_notes end def self.description "Extracts release notes from git tag messages" end def self.output [ ['RELEASE_NOTES', 'Release notes extracted from git tag'] ] end def self.author "Piotrek Dubiel" end def self.is_supported?(platform) true end end end end
Version data entries
29 entries across 29 versions & 1 rubygems