fastlane-plugin-get_last_circleci_build_number 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41537aed2bfb31dca7819fbf57d1d38de7fd30528083120cdf9869e92acb05de
|
4
|
+
data.tar.gz: d1d6647873a175ebb5901988dbd634f00dc40440bd8439d8d19dee4999cecdf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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]
|
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.
|
55
|
-
|
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
|