Skip to content

Commit

Permalink
fix(upload): do not attempt to overwrite initial branch
Browse files Browse the repository at this point in the history
  • Loading branch information
boennemann committed Feb 17, 2017
1 parent 47d8d88 commit a935470
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = function upload () {
const branchPrefix = config.branchPrefix || 'greenkeeper/'

if (!env.TRAVIS_BRANCH.startsWith(branchPrefix)) return console.error('Not a Greenkeeper pull request.')
if (env.TRAVIS_BRANCH === (branchPrefix + 'initial')) return console.error('Not a Greenkeeper update pull request.')

if (!env.TRAVIS_JOB_NUMBER.endsWith('.1')) return console.error('Only running on first build job')

Expand Down

0 comments on commit a935470

Please sign in to comment.