dpl-releases 1.10.7.travis.3120.5 → 1.10.7.travis.3125.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dpl/provider/releases.rb +5 -1
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d28ddc14d2d598b4eae7431d14a6bf8dc23c4a368d133a49bc91db1d79dddb84
4
- data.tar.gz: eb2c4aa282e4bf85a070e0fc53ffc5cc40ba55ac861c230134ecff1b311cdaa9
3
+ metadata.gz: aae7d08822916a90bf8b10be6e32f942d2050cb257a2e7c56953b9bf17da25e9
4
+ data.tar.gz: e1e504e50e6bce63c2b8e54838e7f389b80d0525bf822d2bf8a61755705c0598
5
5
  SHA512:
6
- metadata.gz: 1d05bd00ef79ffbac510f092893eb8f0ce2561ffe3e178dcdfdfe97f9bc05b79f08e0d45ecc947fd52899ca3cee4e545b50bdb06b54911881e75643ccd2354cd
7
- data.tar.gz: a9c7ca1b2c80a4ea5bd1cd240431592d945550fe5d200ae1ce1c3c7363cd522519a09004bd00a803186e897c487f3d5983dfb6a5f0f6e2322d230e0fbebcfde7
6
+ metadata.gz: e598a43f04cb0a16a14f5ddd9025372aad984d55a7bff1bd9b08965e8ab77a1de22740da55a3682e80f4d6687f71fc315912a3012ade3a67e63d8e177ab50ef8
7
+ data.tar.gz: ab1145e248f6a96f2276b8500f871aa3ff592bacf7f4158a4c68d0845827f3497e3c3b2e919fd9821f85f9fe3b3affe5f0dd80851de5fc20fb44a9a245f122b5
@@ -147,7 +147,7 @@ module DPL
147
147
  options[:tag_name] = get_tag.tap {|tag| log "Setting tag_name to #{tag}"}
148
148
  end
149
149
 
150
- unless options.key?(:target_commitish)
150
+ if same_repo? && !options.key?(:target_commitish)
151
151
  options[:target_commitish] = sha.tap {|commitish| log "Setting target_commitish to #{commitish}"}
152
152
  end
153
153
 
@@ -163,6 +163,10 @@ module DPL
163
163
  api.upload_asset(release_url, file, {:name => filename, :content_type => content_type})
164
164
  end
165
165
 
166
+ def same_repo?
167
+ slug == context.env['TRAVIS_REPO_SLUG']
168
+ end
169
+
166
170
  def booleanize!(opts)
167
171
  opts.map do |k,v|
168
172
  opts[k] = if BOOLEAN_PARAMS.include?(k.to_s.squeeze.downcase)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl-releases
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.7.travis.3120.5
4
+ version: 1.10.7.travis.3125.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-20 00:00:00.000000000 Z
11
+ date: 2018-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dpl
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.10.7.travis.3120.5
19
+ version: 1.10.7.travis.3125.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.10.7.travis.3120.5
26
+ version: 1.10.7.travis.3125.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: octokit
29
29
  requirement: !ruby/object:Gem::Requirement