AkhileshNS / heroku-deploy

A simple github action that dynamically deploys an app to heroku

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Workflow never completes

markdthompson-SR opened this issue · comments

The action deployed to Heroku successfully, but hangs on the 'Run akhileshns/heroku-deploy@v3.12.12' step, and never finishes:
Screen Shot 2022-04-28 at 12 01 29 PM

Here's my main.yml with app-name & email removed:

name: Deploy

on:
  push:
    branches:
      - master

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: akhileshns/heroku-deploy@v3.12.12 # This is the action
        with:
          heroku_api_key: ${{secrets.HEROKU_API_KEY}}
          heroku_app_name: "YOUR APP's NAME" #Must be unique in Heroku
          heroku_email: "YOUR EMAIL"`

Also note that the action did not respond to cancelling the action:
Screen Shot 2022-04-28 at 12 12 52 PM

Sometimes GitHub Actions take to much to run my tests, but it seems to be something random. 🤔
They also have a problem with cache, did you refresh the page? 😅

same issue

We also have this kind of behavior. But I don't think it's a problem coming from this github action.

What we saw :

  • All stuck deployments had their building step in heroku dashboard never finished. Or stopped by Heroku team, 2h later. But they never finished.
  • There was not explicit errors about this timeout. Log in Heroku building console was stuck.
  • We did not saw pb for building step taking less than 14 minutes
  • Reading some doc we saw there was mention about a 15 minutes limits.
    --> the first problem was that even in Heroku dashboard all the timeouts was silent and waiting for more than 15 minutes without any error is not great
    --> the second problem is the consumption of Github credit. Having several deployments taking 1h and that will eventually failed is not good for our finances.

So a workaround for us was at github action level to timeout the step:

deployment:
    runs-on: ubuntu-latest
    timeout-minutes: 14
    steps:
      - uses: actions/checkout@v3
      - uses: akhileshns/heroku-deploy@v3.12.12

It won't solve Heroku problem, but it will save your time and credit. To relaunch another workflow quicker.

Hope this can help