From a93547028dc7033bb3e61af8239488f1f208cb9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6nnemann?= Date: Fri, 17 Feb 2017 19:20:32 +0100 Subject: [PATCH] fix(upload): do not attempt to overwrite initial branch --- upload.js | 1 + 1 file changed, 1 insertion(+) diff --git a/upload.js b/upload.js index ce947aba..51d0a4f6 100755 --- a/upload.js +++ b/upload.js @@ -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')