Sha256: 4e8ad3d73bafdd07e69ca5d9535e800090488fdd9f3a013b2a905e9c57ddbb0f
Contents?: true
Size: 1.25 KB
Versions: 4
Compression:
Stored size: 1.25 KB
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'json' require 'uri' require 'net/http' require 'optparse' require_relative '../lib/release_me/bump_tag' # Author: Corey Osman # Purpose: auto bump and tag, should only be run by a gitlab ci runner # make API calls to gitlab in order to update the file and tag a version # this script is not smart. if it fails you may need to perform some manual steps # the next version should detect the failed state and perform the neccessary steps options = {} OptionParser.new do |opts| opts.banner = "Usage: #{__FILE__} [options]" opts.on('-j', '--json', 'Output as JSON') do options[:json] = true end opts.on('--version-type TYPE', 'Version string to use: commit|time|semver') do |arg| options[:version_type] = arg.to_sym end opts.on('-p', '--path_of_project PATH', "Project path, defaults to: #{Dir.pwd}") do |arg| options[:project_path] = arg || Dir.pwd end opts.on('--no-tag', 'Do not tag a version') do options[:no_tagging] = true end opts.on('-n', '--noop', 'Perform a Dry Run') do options[:dry_run] = true end opts.on('-h', '--help', 'Prints this help') do puts opts exit 1 end end.parse! instance = ReleaseMe::BumpTag.new(options) puts instance.run
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
release_me-0.1.4 | exe/bump_and_tag |
release_me-0.1.3 | exe/bump_and_tag |
release_me-0.1.2 | exe/bump_and_tag |
release_me-0.1.1 | exe/bump_and_tag |