AkhileshNS / heroku-deploy

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

#119 Add "useforce" argument to enforce usage of --force #149

Open Hacklone opened 1 year ago

Hacklone commented 1 year ago

Add useforce argument to enforce usage of --force when switching branches to avoid unnecessary double deploy

Hacklone commented 1 year ago

@AkhileshNS: Can you please check this PR, would tremendously help our GH actions :) Thanks

Hacklone commented 1 year ago

Anyone?

Hacklone commented 1 year ago

@AkhileshNS: Is this project still live? There are many open PRs with valuable additions :)

danilogco commented 1 year ago

Hey, @AkhileshNS. Can you check this PR? It would be nice to have it available.

Gieted commented 1 year ago

Would be very useful. My workflow generates some extra files before deploying to Heroku, so it always fails the first attempt.

From https://github.com/myapp/backend
 * [new branch]      preprod    -> origin/preprod
 * [new branch]      prod       -> origin/prod
Created and wrote to ~/.netrc
Successfully logged into heroku
 ›   Warning: Our terms of service have changed: 
Added git remote heroku
 ›   https://dashboard.heroku.com/terms-of-service
To https://git.heroku.com/myapp-test.git
 ! [rejected]        HEAD -> main (fetch first)
error: failed to push some refs to 'https://git.heroku.com/myapp-test.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Hacklone commented 9 months ago

Sent an email to @AkhileshNS but sadly no response. :( Hope he's alright