souls 1.11.6 → 1.12.2
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/lib/souls/cli/create/index.rb +1 -1
- data/lib/souls/cli/gcloud/scheduler/index.rb +2 -2
- data/lib/souls/cli/github/index.rb +2 -2
- data/lib/souls/version.rb +1 -1
- data/lib/souls/versions/.souls_api_version +1 -1
- data/lib/souls/versions/.souls_worker_version +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d291ae2cbca7be677a5a17bcd5be72f91e2d6fdb738732855d859ce9bd57c292
|
|
4
|
+
data.tar.gz: cb784d99ce95dfd680d068dcd3253ac06efb62eb773a3229a7a297af30e0a5a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ff1abbce1850a539e3e885687f85ce2208ce2410f8031afe52d033620feb971e79ea808448f81d2807f2f11249850e8d9fd2eae6d5b1a888108d3f07b9c84ba
|
|
7
|
+
data.tar.gz: d15ffb53f4c1cfb37f3e5b8c1f2574feb52046fc5c45c8da5856bbebbd3ea12ac5df19a5ba214cacd9f5bc87017521d5ec9058da38c45e0f8f95ab8dc54503c2
|
|
@@ -171,7 +171,7 @@ end
|
|
|
171
171
|
export_default_credentials: true
|
|
172
172
|
|
|
173
173
|
- name: Sync Tasks
|
|
174
|
-
run: cd apps/#{worker_name} && souls gcloud scheduler sync_schedules
|
|
174
|
+
run: cd apps/#{worker_name} && souls gcloud scheduler sync_schedules --timezone=${{ secrets.TZ }}
|
|
175
175
|
|
|
176
176
|
- name: Configure Docker
|
|
177
177
|
run: gcloud auth configure-docker --quiet
|
|
@@ -18,7 +18,7 @@ module Souls
|
|
|
18
18
|
project_id = Souls.configuration.project_id
|
|
19
19
|
|
|
20
20
|
schedules_list = current_schedules
|
|
21
|
-
|
|
21
|
+
worker_name = FileUtils.pwd.split("/").last
|
|
22
22
|
Queries::BaseQuery.all_schedules.each do |k, v|
|
|
23
23
|
worker_name = FileUtils.pwd.split("/").last
|
|
24
24
|
job_name = "souls_#{worker_name}_#{k.to_s.underscore}".to_sym
|
|
@@ -43,7 +43,7 @@ module Souls
|
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
schedules_list.each do |k, _|
|
|
46
|
-
next unless k.match?(/^souls_/)
|
|
46
|
+
next unless k.match?(/^souls_#{worker_name}/)
|
|
47
47
|
|
|
48
48
|
system("gcloud scheduler jobs delete #{k} -q >/dev/null 2>&1")
|
|
49
49
|
end
|
|
@@ -25,7 +25,7 @@ module Souls
|
|
|
25
25
|
update_api_env(key: key, value: value, dqm: options[:dqm])
|
|
26
26
|
update_workers_env(key: key, value: value, dqm: options[:dqm])
|
|
27
27
|
update_github_actions(key: key)
|
|
28
|
-
|
|
28
|
+
system("gh secret set #{key} -b \"#{value.strip}\"")
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
desc "watch", "Watch GitHub Actions Workflow"
|
|
@@ -104,7 +104,7 @@ module Souls
|
|
|
104
104
|
file_paths.each do |file_path|
|
|
105
105
|
worker_workflow = File.readlines(file_path)
|
|
106
106
|
worker_workflow[worker_workflow.size - 1] = worker_workflow.last.chomp
|
|
107
|
-
worker_workflow << "
|
|
107
|
+
worker_workflow << " \\\n --set-env-vars=\"#{key.upcase}=${{ secrets.#{key.upcase} }}\""
|
|
108
108
|
File.open(file_path, "w") { |f| f.write(worker_workflow.join) }
|
|
109
109
|
puts(Paint % ["Updated file! : %{white_text}", :green, { white_text: [file_path.to_s, :white] }])
|
|
110
110
|
end
|
data/lib/souls/version.rb
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.12.2
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.12.2
|