AkhileshNS / heroku-deploy

A simple github action that dynamically deploys an app to heroku
MIT License
972 stars 254 forks source link

heroku: Press any key to open up the browser to login or q to exit #153

Closed carlosLMZarego closed 1 year ago

carlosLMZarego commented 1 year ago

Hi, my action is failing now because in my CD Heroku ask for credentials...

Heroku: Press any key to open up the browser to login or q to exit: fatal: 'heroku' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: 'Heroku' does not appear to be a git repository
fatal: Could not read from remote repository.

why is this asking for credentials when this should use the API key?...

thank you

carlosLMZarego commented 1 year ago

this is my config

name: Push Container to Heroku

on:
  push:
    branches:
      - development

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: akhileshns/heroku-deploy@v3.12.12
        with:
          heroku_api_key: ${{secrets.HEROKU_API_KEY}}
          heroku_app_name: ${{secrets.HEROKU_APP_NAME}}
          heroku_email: ${{secrets.HEROKU_EMAIL}}
          branch: "development"
carlosLMZarego commented 1 year ago

adding the justlogin: true fix the issue

 with:
          heroku_api_key: ${{secrets.HEROKU_API_KEY}}
          heroku_app_name: ""
          heroku_email: "YOUR EMAIL"
          justlogin: true