File tree 2 files changed +2
-2
lines changed 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 6
6
before_install :
7
7
- brew update
8
8
- brew outdated carthage || brew upgrade carthage
9
- - brew install jq
10
9
install :
11
10
- " (cd Lib && bundle install --path=vendor/bundle --binstubs=vendor/bin)"
12
11
before_script :
Original file line number Diff line number Diff line change 1
1
require 'xcjobs'
2
+ require 'json'
2
3
3
4
def destinations ( platform : 'iphonesimulator' )
4
5
if platform == 'iphonesimulator'
@@ -71,7 +72,7 @@ namespace :build do
71
72
if ENV [ 'CI' ]
72
73
pull_req = %[https://api.github.com/repos/#{ ENV [ 'TRAVIS_REPO_SLUG' ] } /pulls/#{ ENV [ 'TRAVIS_PULL_REQUEST' ] } ]
73
74
auth_token = 'kishikawakatsumi:209558699492df7782fbe62dda1891d6a6ba010f'
74
- ( ENV [ 'TRAVIS_PULL_REQUEST' ] == 'false' ? ENV [ 'TRAVIS_BRANCH' ] : `curl -u #{ auth_token } -s #{ pull_req } | jq -r . head. ref` ) . strip
75
+ ( ENV [ 'TRAVIS_PULL_REQUEST' ] == 'false' ? ENV [ 'TRAVIS_BRANCH' ] : JSON . parse ( `curl -u #{ auth_token } -s #{ pull_req } ` ) [ ' head' ] [ ' ref' ] ) . strip
75
76
else
76
77
%x[git rev-parse --abbrev-ref HEAD]
77
78
end
You can’t perform that action at this time.
0 commit comments