fastlane 2.18.0 → 2.18.1
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 +4 -4
- data/fastlane/lib/fastlane/actions/git_branch.rb +5 -5
- data/fastlane/lib/fastlane/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d9d3c96a177ba6a9c1dee9d00010f9dfe7ef58ea
|
|
4
|
+
data.tar.gz: c54cb232450a7a3c6d3713d19175f41c38df0735
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f5b27fee4f39d82d36024196cd7d8310de46e75c7d10f0bb8eca16240c7dc1131d142f21928b38170133b6f69e5999efa0a8cdb2494f7250631bb8006effa39
|
|
7
|
+
data.tar.gz: 69b350cc9901f2439b15531109eacfe49936ba1998a1bcb441aacd8be29a2178cb07a83fac6d3dc3924437772ef5cf987c517244a0b660449a265c0f552533ca
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
module Fastlane
|
|
2
2
|
module Actions
|
|
3
3
|
module SharedValues
|
|
4
|
+
GIT_BRANCH_ENV_VARS = %w(GIT_BRANCH BRANCH_NAME TRAVIS_BRANCH BITRISE_GIT_BRANCH CI_BUILD_REF_NAME).freeze
|
|
4
5
|
end
|
|
5
6
|
|
|
6
7
|
class GitBranchAction < Action
|
|
7
8
|
def self.run(params)
|
|
8
|
-
|
|
9
|
-
env_name
|
|
10
|
-
ENV.fetch(env_name) { `git symbolic-ref HEAD --short 2>/dev/null`.strip }
|
|
9
|
+
env_name = SharedValues::GIT_BRANCH_ENV_VARS.find { |env_var| FastlaneCore::Env.truthy?(env_var) }
|
|
10
|
+
ENV.fetch(env_name.to_s) { `git symbolic-ref HEAD --short 2>/dev/null`.strip }
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
#####################################################
|
|
@@ -15,11 +15,11 @@ module Fastlane
|
|
|
15
15
|
#####################################################
|
|
16
16
|
|
|
17
17
|
def self.description
|
|
18
|
-
"Returns the name of the current git branch"
|
|
18
|
+
"Returns the name of the current git branch, possibly as controled by CI ENV vars"
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
def self.details
|
|
22
|
-
"If no branch could be found, this action will return
|
|
22
|
+
"If no branch could be found, this action will return an empty string"
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def self.available_options
|