Skip to content

Commit 543e896

Browse files
authored
Update Fastlane util to use new IS_NIGHTLY value
This should handle the case where IS_NIGHTLY is nil
1 parent a775bbc commit 543e896

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fastlane/lib/util.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
# should we build and release to the nightly channel?
44
def should_nightly?
5-
cron? || circleci_nightly_workflow?
5+
travis_cron? || circleci_nightly?
66
end
77

88
# are we running under the circleci nightly workflow?
9-
def circleci_nightly_workflow?
10-
ENV['CIRCLE_WORKFLOW_ID'] == '1d9cac43-c1bb-45b5-8f28-610d2d38db71'
9+
def circle_nightly?
10+
ENV['IS_NIGHTLY'] == '1'
1111
end
1212

1313
# should we build and release to the beta channel?
@@ -21,7 +21,7 @@ def has_api_keys?
2121
end
2222

2323
# was this build initiated by cron?
24-
def cron?
24+
def travis_cron?
2525
ENV['TRAVIS_EVENT_TYPE'] == 'cron'
2626
end
2727

0 commit comments

Comments
 (0)