title: Bitbucket pipeline fail to push to heroku
body: <p>I do have a react.js app (create-react-app) I setup the file just like explained in the official docs, everything went good but the push failed with this specific line</p>
  
  <blockquote>
    <p>git push <a href="https://heroku" rel="nofollow noreferrer">https://heroku</a>:$API_KEY@git.heroku.com/$APP_NAME.git
    HEAD:master</p>
  </blockquote>
  
  <p>The bitbucket-pipelines.yml is on the root folder:</p>
  
  <pre><code>image: node:6
  clone:
    depth: full
  pipelines:
    default:
      - step:
          script:
            - npm install
            - npm test
            - git push git push https://heroku:$API_KEY@git.heroku.com/$APP_NAME.git HEAD:master
  </code></pre>
  
  <p>What I'm doing wrong? 
  The goal here is to use the CI on bitbucket platform but also push master commits to heroku repository to automate deploys.</p>
  
  <p>The error I'm getting is:</p>
  
  <pre><code>remote: !   WARNING:
  remote: !   Do not authenticate with username and password using git.
  remote: !   Run `heroku login` to update your credentials, then retry the git command.
  remote: !   See documentation for details: https://devcenter.heroku.com/articles/git#http-git-authentication
  fatal: Authentication failed for 'https://heroku
  </code></pre>