mirror of
https://github.com/bitwarden/android.git
synced 2026-05-09 05:20:24 -05:00
Compare commits
3 Commits
agalles/20
...
debug-rele
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e37aa54a95 | ||
|
|
44ad1d34b0 | ||
|
|
6f107f6610 |
@@ -20,7 +20,7 @@ module Supply
|
||||
|
||||
def custom_promote_track
|
||||
UI.message("Using custom promotion logic")
|
||||
track_from = client.tracks(Supply.config[:track]).first
|
||||
track_from = client.tracks(Supply.config[:track], max_results: 500).first
|
||||
unless track_from
|
||||
UI.user_error!("Cannot promote from track '#{Supply.config[:track]}' - track doesn't exist")
|
||||
end
|
||||
@@ -81,15 +81,20 @@ module Supply
|
||||
UI.message("Promoting release with version: #{release.name} (#{release.version_codes.first})")
|
||||
|
||||
if track_to
|
||||
UI.message("Using existing track_to")
|
||||
# Its okay to set releases to an array containing the newest release
|
||||
# Google Play will keep previous releases there this release is a partial rollout
|
||||
track_to.releases = [release]
|
||||
else
|
||||
UI.message("Creating new track_to")
|
||||
track_to = AndroidPublisher::Track.new(
|
||||
track: Supply.config[:track_promote_to],
|
||||
releases: [release]
|
||||
)
|
||||
end
|
||||
UI.message("track_to details: #{track_to.inspect}")
|
||||
|
||||
UI.message("About to promote with release: #{release.inspect}")
|
||||
|
||||
client.update_track(Supply.config[:track_promote_to], track_to)
|
||||
UI.message("confirmed that update_track was reached: #{Supply.config[:track_promote_to]} #{release}")
|
||||
|
||||
Reference in New Issue
Block a user