fastlane-plugin-get_last_circleci_build_number 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d194a3ab97375c5daa0c3e0cba541132c4858513f3cb9ff391a5a142e608bfd
4
- data.tar.gz: e907227be86fbce670f98a1b49ef6a4454adf7b828b7c49517799c46509abc27
3
+ metadata.gz: 41537aed2bfb31dca7819fbf57d1d38de7fd30528083120cdf9869e92acb05de
4
+ data.tar.gz: d1d6647873a175ebb5901988dbd634f00dc40440bd8439d8d19dee4999cecdf0
5
5
  SHA512:
6
- metadata.gz: 7cc852ede1bbecba589ed2b39cec749507b615e4ff4f980650640ed81d0cd427e7120bc17f1becf150309e775aa777de3bcee1ac94b64b98f10987874a0d29a7
7
- data.tar.gz: 5224966cd8fd44c08b069b8d0d8c19d41284eed2fd28869b05d00a913751f95deb7df4588d874016b6a003e9dd60497a6a1d3a868c4a318b8336561ccf7be14a
6
+ metadata.gz: 24f7740e6488c5850be1ef50b22d506f328b77449fa084871b74c92fd542fb3964d64b6bde4854076442f0ba9cb35f79433646bf814d90bfb8ec3d0318f659e5
7
+ data.tar.gz: c52e93e63ebd48eaccb76c7da5b82425aefef91b25ba9106127a017380fc57fec2d7726be0480331534511242868f6636fe743295521db6ad5dfde5a35566d51
data/README.md CHANGED
@@ -18,7 +18,9 @@ Ensure you have the following enviroment variables set:
18
18
 
19
19
  You should be able to find your repository name and user name on circleci when you enter into a project the url will be `https://app.circleci.com/projects/project-setup/github/dawidvdh/some-project` so in this case `dawidvdh` is my username and `some-project` is my project.
20
20
 
21
- I typical use it in the projectg like so:
21
+ ## Usage
22
+
23
+ I typical use it in a project like so:
22
24
 
23
25
  ```
24
26
  before_all do |options, params|
@@ -1,7 +1,11 @@
1
1
  require 'fastlane/action'
2
2
 
3
3
  module Fastlane
4
- module Actions
4
+ module Actions
5
+ module SharedValues
6
+ GET_LAST_CIRCLECI_BUILD_NUMBER = :GET_LAST_CIRCLECI_BUILD_NUMBER
7
+ end
8
+
5
9
  class GetLastCircleciBuildNumberAction < Action
6
10
  def self.run(params)
7
11
  Actions.verify_gem!('circleci')
@@ -40,7 +44,7 @@ module Fastlane
40
44
  e['build_num']
41
45
  end
42
46
 
43
- Actions.lane_context[SharedValues::GET_LAST_CIRCLECI_BUILD_NUMBER] = build_num[0].to_i
47
+ Actions.lane_context[SharedValues::GET_LAST_CIRCLECI_BUILD_NUMBER] = build_num[0]
44
48
  end
45
49
 
46
50
  def self.description
@@ -51,8 +55,10 @@ module Fastlane
51
55
  ["Dawid van der Hoven"]
52
56
  end
53
57
 
54
- def self.return_value
55
- "the last build number from circleci as a string"
58
+ def self.output
59
+ [
60
+ ['LAST_CIRCLE_CI_BUILD_NUMBER', 'Last Build Number']
61
+ ]
56
62
  end
57
63
 
58
64
  def self.details
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GetLastCircleciBuildNumber
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-get_last_circleci_build_number
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dawid van der Hoven