fastlane-plugin-schedule 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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccfa3663f3d4cc1aeb547c5955ced7e8fd07a6e9
|
4
|
+
data.tar.gz: 6545bd38c218905f90923be231de7e43a589a266
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d13c59fdb0bb65eaf21b087fae7e1d5838276cc6d774978ee8a133c2e3e5c1fdf145599bee19607256f644d6653a770238a049003699910fcdbd9cff88711b8d
|
7
|
+
data.tar.gz: 873fcf65d3cb85a68afd73f9125ad1e2bafe691274b8427494a754fd882a00cbea2ff51d4840591a59de2a61c8898659ff09bf5d27bfce91e38694bdd544fcfa
|
@@ -7,6 +7,10 @@ module Fastlane
|
|
7
7
|
module Actions
|
8
8
|
class GetLaneAction < Action
|
9
9
|
def self.run(params)
|
10
|
+
default_timezone = ENV['TZ']
|
11
|
+
if !params[:timezone].nil?
|
12
|
+
ENV['TZ'] = params[:timezone]
|
13
|
+
end
|
10
14
|
schedule = YAML.load_file('./fastlane/schedule.yml')
|
11
15
|
time = Time.now
|
12
16
|
wday = time.wday
|
@@ -19,6 +23,7 @@ module Fastlane
|
|
19
23
|
if action.nil?
|
20
24
|
return everyday_action
|
21
25
|
end
|
26
|
+
ENV['TZ'] = default_timezone
|
22
27
|
action['lane']
|
23
28
|
end
|
24
29
|
|
@@ -56,11 +61,11 @@ module Fastlane
|
|
56
61
|
|
57
62
|
def self.available_options
|
58
63
|
[
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
+
FastlaneCore::ConfigItem.new(key: :timezone,
|
65
|
+
env_name: "TZ",
|
66
|
+
description: "timezone",
|
67
|
+
optional: true,
|
68
|
+
type: String)
|
64
69
|
]
|
65
70
|
end
|
66
71
|
|